Pages: [1]   Go Down
Author Topic: TLC5940 & Adafruit PN532 RFID Shield Conflict  (Read 690 times)
0 Members and 1 Guest are viewing this topic.
Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 574
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
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:
#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?

Thanks.

My code is attached as well.




* readMifareTest10.ino (8.41 KB - downloaded 3 times.)
Logged

Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 574
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anyone?
Logged

Pages: [1]   Go Up
Jump to: