Example code for the 74HC595 shift register