MSP430 light dimmer with wake-up light function