Code for the Arduino micro-controllers