trying to control 37leds with 5x 74HC595

Re: trying to control 37leds with 5x 74HC595

All you need to do is set up the 5 x 8 bits that you want to display in 5 bytes. Then:

SPI.transfer (a);
SPI.transfer (b);
SPI.transfer (c);
SPI.transfer (d);
SPI.transfer (e);

That's it. No longs, long longs, or anything.