Tlc5940 multiplexing code

The Arduinome_4X4_RGB.pde fails to compile (error: 'PD6' was not declared in this scope)

Looks like there has been a change in the latest Arduino distribution that makes this not compile. Take the TLC5940Multiplex_defines.h file and add the following to the end:-

#define PORTB   _SFR_IO8 (0x05)
/* PORTB */
#define PB7     7
#define PB6     6
#define PB5     5
#define PB4     4
#define PB3     3
#define PB2     2
#define PB1     1
#define PB0     0


#define PORTD   _SFR_IO8 (0x0B)
/* PORTD */
#define PD7     7
#define PD6     6
#define PD5     5
#define PD4     4
#define PD3     3
#define PD2     2
#define PD1     1
#define PD0     0

I have now amended this file on my site.

I connected the 5940's together as per the playground article* which seems to differ slightly from Grumpy Mike's schematic

My schematic uses a modified early version of the TLC5940 library which is what I based my code on. The "official" library changed some of the pins, there pins have fixed hardware functions so it is not a simple matter to change them. So you must use my wiring with my code or the other wiring with the other code, you can't mix them.