Code examples for use in msp430 microcontroller