Example code for writing to a shift register via SPI