Thanks for that. I'll play around with those type of arrays if I can work out how to put them into your code. Yes it did perplex me when I saw that
" byte dataArray[]= {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 " in your original code you gave me because straight after it you had some in the B00000001 format but it was "commented out"
#include <SPI.h> // bring in SPI library
byte SSanodes = 9; // output latch for anodes shift register. Can be any pin except 10,11,12,13.
byte SScathodes = 10; // output latch for cathodes shift register. Pin D10 needs to be an output for SPI.
byte dataArray[]= {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; // load up some initial data
// dataArray[0] = B00000001
// dataArray[1] = B00000010
// dataArray[2] = B00000100
// dataArray[3] = B00001000
// dataArray[4] = B00010000
// dataArray[5] = B00100000
// dataArray[6] = B01000000
// dataArray[7] = B10000000
I think that it's time for me to really knuckle down and get a grasp on how all this coding is put together. Thanks again Crossroads and I'll let you know how I go, Pedro.