ahhh, ok which I am in a round about doing anyway (yes it's a 74hc) ..
Since there's no array of "bits"... you see my for loop, well it does more or less just that.
for(byte n2=0; n2<MaxShiftRegisters+1; n2++)
{
if (chip==n2)
shiftOut(dataPin, clockPin, MSBFIRST, b); //once we get to register 3, place the contents of b into
else
shiftOut(dataPin, clockPin, MSBFIRST, bp2); //bp2 = B00000000
}
if (chip==n2)
// this is not going to work is it, because let's suppose
In > shiftreg1
In > shiftreg1 > shiftreg2
In > shiftreg1 > shiftreg2 > shiftreg3
so now, we put the value we want in, it has to go to the first shiftregister1 - then i have to ..
ok i'll have to rethink the code or find an example ![]()