Functions that Require VPRG_ENABLED
[Core Libary FunctionsExtended Library Functions]


Detailed Description

Functions that require VPRG_ENABLED == 1.

From tlc_progmem_utils.h:

From the Core Functions:

You can enable VPRG by changing

 #define VPRG_ENABLED    0 
to
 #define VPRG_ENABLED    1 
in tlc_config.h

You will also have to connect Arduino digital pin 6 to TLC pin 27. (The pin to be used can be changed in tlc_config.h). If VPRG is not enabled, the TLC pin should grounded (remember to unconnect TLC pin 27 from GND if you do enable VPRG).


Functions

void tlc_setDCfromProgmem (prog_uint8_t *dcArray)
 Sets the dot correction data from an array in progmem.


Function Documentation

void tlc_setDCfromProgmem ( prog_uint8_t *  dcArray  ) 

Sets the dot correction data from an array in progmem.

An example:

#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, 32, 63), DC_QUARTET(32, 63, 32, 63),
};

// sometime after Tlc.init()
tlc_setDCfromProgmem(dcArray1);
This would set every other channel to have a dot correction value of 32. (Although the NUM_TLCS * 12 looks like an error, each DC_QUARTET is 3 bytes). The array would have to be expanded if NUM_TLCS != 1.

The Format of the array is similar to tlc_GSData, the last channel of the last TLC is the first value in the array. In the example above, the first 32 is setting OUT15, and the last 63 is setting OUT0.

Parameters:
dcArray A progmem array of dot correction data to be shifted out.
See also:
Tlc.setAllDC


Generated on Mon Feb 16 13:52:57 2009 for Arduino Tlc5940 Library by  doxygen 1.5.6