I'm VERY new to Arduino. I did search the forum but couldn't find an answer (at least one I could wrap my head around) so please forgive if this is elementary.
How do I send a byte "past" the first of two 74HC595 chips and through to the second? Asking about the code (not the wiring).
In simple terms, let us say I have byte A which is for the first chip and byte B which is for the second. I'd have thought that it would go something like this:
digitalWrite(latchPin, LOW); shiftOut(dataPin, clockPin, LSBFIRST, B); shiftOut(dataPin, clockPin, LSBFIRST, A); digitalWrite(latchPin, HIGH);
But apparently it dont work that way....?