Arduino implementation of the 74HC595 shift register