Code from and for my microcontroller class