hi guys
i am new to electronics and programming so i am working on a light that has a lot of leds. i have got the hardware done but my code doesn’t work >:( :x :x this is just some test code to see if everything is working but the code is holding me up!!!
here it is…
#include <Tlc5940.h>
void setup()
{
Tlc.init(0);
}
void loop()
{
Tlc.set(0, 4095);
Tlc.set(1, 4095);
Tlc.set(2, 4095);
Tlc.set(3, 4095);
Tlc.set(4, 4095);
Tlc.update();
}
and these are my errors…
sketch_apr02a.ino: In function ‘void setup()’:
sketch_apr02a:7: error: ‘Tlc’ was not declared in this scope
sketch_apr02a.ino: In function ‘void loop()’:
sketch_apr02a:13: error: ‘Tlc’ was not declared in this scope