Go Down

Topic: LED Driver (TLC5940) EASY problem... (Read 450 times) previous topic - next topic

njs707

OK folks, all I want to do is blink 1 led from a TLC5940 for 1 second on, 1 second off ( eventually doing it with 16 ) .... why is this not working????
Code: [Select]


#include "Tlc5940.h"

void setup()
{
  Tlc.init();
}


void loop()
  {
    Tlc.clear();
      {
         Tlc.set(9,2000);
         delay(1000);
         Tlc.set(9,30);
         delay(1000);
      }

   Tlc.update();
 
}


Thanks,


Nick

njs707

p.s...... what is happing is it is only performing the last command it sees, so it only lights led on pin 9 to a setting of 30, but holds it on at 30 forever... WTF

AWOL

Well, I'm no expert, but it looks like you're only doing the update after setting the LED to 30.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


denniscj7

Take a look at my prior post on lessons learned with 5940.

Go Up