Hi,
I have an Arduino mega 2560, and one (later man) TLC5940 to control RGB LEDs.
It works all great.
I want to use the dot correction in order to get better color (yellow, is more green etc...).
So, I connect the pin 27 of the TLC to the pin 50 of my arduino, and enable VPRG in the config file.
Thats my code: (from the TLC5940 library http://alex.kathack.com/codes/tlc5940arduino/html_r014/group__ReqVPRG__ENABLED.html)
#include "Tlc5940.h"
#include "tlc_progmem_utils.h"
prog_uint8_t dcArray1[NUM_TLCS * 12] = {
DC_QUARTET(32, 63, 32, 63), DC_QUARTET(32, 63, 32, 63),
DC_QUARTET(32, 63, 63, 63), DC_QUARTET(32, 63, 32, 63),
};
// treid with differents values for the dot correction
void setup(void)
{
Tlc.init();
tlc_setDCfromProgmem(dcArray1);
while (Tlc.update()); // tried with and without this line
}
void loop(void)
{
Tlc.clear();
// set red color to all rgb lights
Tlc.update();
}
The RGB light are no more red but more cyan/white.
I don't really understand how it should work.
Did somebody already get dot correction working on an arduino mega?
Thanks for your help!