Go Down

Topic: TLC5940 & Adafruit PN532 RFID Shield Conflict (Read 1 time) previous topic - next topic


I'm using a TLC5940 chip to PWN 4 RGB LEDS with a Duemilanove.  This works fine on it's own.
After adding the Adafruit PN532 RFID shield I can PWN the LEDS in void setup() and they work fine.  
Once in the main loop, this no longer works and I have lost control of the LEDS.

I believe the conflict is in pin 3.  The TLC5940 library http://code.google.com/p/tlc5940arduino/ uses pin 3 as the GSCLK or clock for PWM.

I know I saw pin 3 from the shield used for something, but can't find it now as there is no datasheet yet.  http://adafruit.com/products/789.
Ah, here it is.  
The example sketch has this:
Code: [Select]
#define RESET (3)  // Not connected by default on the NFC Shield

I have tried changing pin 3 in the TLC5940 library to pin 5 but this does not work.
Any ideas or advice?


My code is attached as well.


Go Up