implementing shift register, testing on RPi