Code for the microcontroller