Check the tlc5940arduino project on Google Code for updates. To install, unzip the "Tlc5940" folder to <Arduino Folder>/hardware/libraries/
All the options for the library are located in tlc_config.h, including NUM_TLCS, what pins to use, and the PWM period. After changing tlc_config.h, be sure to delete the Tlc5940.o file in the library folder to save the changes.
Extended Functions. These require an include statement at the top of the sketch to use.
Functions that require VPRG_ENABLED. These require VPRG_ENABLED == 1 in tlc_config.h
// Explination for my crazy function extension #ifndef TLC_MY_CRAZY_FUNCTIONS_H #define TLC_MY_CRAZY_FUNCTIONS_H #include "tlc_config.h" #include "Tlc5940.h" void tlc_goCrazy(void); void tlc_goCrazy(void) { uint16_t crazyFactor = 4000; Tlc.clear(); for (uint8_t channel = 4; channel < 9; channel++) { Tlc.set(channel, crazyFactor); } Tlc.update(); } #endif
#include "tlc_my_crazy_functions.h" // ... tlc_goCrazy();
This file is part of the Arduino TLC5940 Library.
The Arduino TLC5940 Library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Arduino TLC5940 Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with The Arduino TLC5940 Library. If not, see <http://www.gnu.org/licenses/>.