Go Down

Topic: I'm having trouble daisy chaining two shift registers together and executing a s (Read 5546 times) previous topic - next topic

PaulRB

Not quite sure why but it seems to work :) Could be the way I wired up the shift registers
Yes, probably so.

Alternatively...
Code: [Select]

  shiftOut(datapin, clockpin, LSBFIRST, highByte(desiredPins>>8));
  shiftOut(datapin, clockpin, LSBFIRST, highByte(desiredPins));
  shiftOut(datapin, clockpin, LSBFIRST, lowByte(desiredPins));
  digitalWrite(latchpin, HIGH);
  digitalWrite(latchpin, LOW);


Would probably also work, except it would be mirror-image to your solution.

Go Up