void switchLED(byte led; boolean state)
{
byte barray[MaxShiftRegisters]; //how many 74HC59's onboard (8 bits per byte to modify)
//from B00000000 B00000000
for (int n=0; n<=MaxShiftRegisters; n++)
{
}
}
//eg (2 of these registers control 16 leds)
//switchLED(5,TRUE); //switch LED 5 on
//switchLED(10,TRUE); //switch LED 10 on
//switchLED(5,FALSE); //switch LED 5 false
//switchLED(5,FALSE); //switch LED 5 off
so 1 should look like (B10000000,B00000000)
9 should spit out (B00000000,B10000000)
16 should be (B00000000,B00000001)
I'm not fussed about switching on say led 1, 4, 8.. i'm only ever going to be lighting 1 LED at a time in any given sequence.
Any thoughts? cheers....