Applied Arduino changes to RPi