Code for the msp430 launchpad.