Library for TLC5940 16-channel PWM chip

Happy Thanksgiving! Have an update: Tlc5940_latest.zip

2008-11-26

  • Tlc.init() sets all channels to zero and updates.
  • Added TLC_PWM_PERIOD and TLC_GSCLK_PERIOD to tlc_config.h
  • Added TLC_CHANNEL_TYPE to tlc_config.h - Now the library supports 4096 TLCs! (if TLC_CHANNEL_TYPE is uint16_t)
  • Changed the examples to use TLC_CHANNEL_TYPE
  • set DATA_TRANSFER_MODE default to TLC_SPI

Since the DATA_TRANSFER_MODE is now TLC_SPI, be sure to change your hardware setup (or just set it back to TLC_BITBANG in tlc_config.h, then delete Tlc5940.o):

  • Arduino Digital Pin 11 (used to be pin 8) -> TLC pin 26
  • Arduino Digital Pin 13 (used to be pin 7) -> TLC pin 25