I am fairly new to the arduino, and so far I love it. However, I am having an issue with trying to get a chunk of code to loop once the program has finished. Here is the code:
#include "Tlc5940.h" //led driver
#include "tlc_fades.h"
void setup ()
{
Tlc.init ();
{
tlc_addFade (0, 0, 500, 1000, 3000); tlc_addFade (0, 500, 0, 3001, 4000);
tlc_addFade (3, 0, 500, 1000, 3000); tlc_addFade (3, 500, 0, 3001, 4000);
tlc_addFade (6, 0, 500, 1000, 3000); tlc_addFade (6, 500, 0, 3001, 4000);
tlc_addFade (9, 0, 500, 1000, 3000); tlc_addFade (9, 500, 0, 3001, 4000);
tlc_addFade (12, 0, 500, 1000, 3000); tlc_addFade (12, 500, 0, 3001, 4000);
tlc_addFade (15, 0, 500, 1000, 3000); tlc_addFade (15, 500, 0, 3001, 4000);
}
}
void loop ()
{
tlc_updateFades ();
Tlc.update();
}
Now from what I understand the tlc_updateFades is looping in order to get the fading effect(?). What is happening is that I am getting one full cycle of fading, then it ends. I've tried moving the addFade into the loop, and that just breaks things. I have also scoured the internet looking for a solution, and came up empty handed. I feel like the solution is really simple, but I cannot figure out what it is. Any ideas?