Master microcontroller code