Hi, I'm trying to do the ShiftOut Tutorial, I can't do a link as this is my first post. It worked great with 1 chip but when I added 2 I'm seeing odd behavior. I simplified my loop from one of the 2 chip examples to the following to try and debug
void loop() {
for (int i = 0; i < 8; i++) {
digitalWrite(latchPin, 0);
shiftOut(dataPin, clockPin, 1<<i);
digitalWrite(latchPin, 1);
delay(1000);
}
}
What this results in is 2 led's being lit up at the same time and progessing through all of them. ie, 1 &2, then 3&4, then 5&6, etc. Instead I want 1 then 2 then 3 then 4 then 5 but I can't figure out how to do that. I thought adding a 2nd shiftOut would update the 2nd 595 chip but all it does for me is override anything I did with the first one.
Thanks for any help!
-BlackNoir