V0.3 by Kevin Sangeelee with changes for V2 of RPi board