??
Im using 'led' as the number of the array index to grab my pre-determined pattern/layout?... no?
Im not passing 'led' in my SPI.transfer();... but instead ledOut[led] ??
or doesnt it work like that?
(and Im starting with the LAST index and reversing through it)
(although.. I could just have my array in the right order.. and loop through it normally.... but that was hind-sight..and not really a 'problem')
byte ledOut[] = {B00000000,B10000000,B11000000,B11100000,B11110000,B11111000,B11111100,B11111110};
for (int led=7; led>=0; led--){
digitalWrite (SS,LOW);
SPI.transfer (registerAddress[group]); // register to write to
SPI.transfer (ledOut[led]); // and value
digitalWrite (SS,HIGH);
}
and I like the 'bit' shifting/walking.... because you can use the 'length' as an auto stop sorta..
'but'..
I dont want:
B10000000
B01000000
B00100000
I want:
B10000000
B11000000
B11100000
etc..etc.
B11111111
then reverse...
B11111110
B11111100
B11111000
etc..etc...
and I couldnt figure out that was done in your examples...