Using 74hct164 with arduino

With Shiftout, you take the latch pin low and the library takes care of the clocking the byte through the shift register ( while leaving the existing display showing )
You just tell it if you want msb or lsb first ( the right way works, the wrong one gives gibberish )

When you take the latch pin high again, the new display immediately replaces the previous display.