Base code for RaspberryPi