Code for an msp430 based LED dimming module