Code I wrote for the TI Launchpad MSP430 G2553 microcontroller