# How do you use low-power mode on an MSP430G2553 using an Energia sketch?

I am using an energia sketch to program my MSP430G2553 controller. I need to know how to use low-power mode. Do I leave the loop section of the sketch empty and set up an interrupt in the setup section? Or is there more to it than that? How do you turn low power mode on and off?

UPDATE: I've discovered 2 things regarding low power mode:

sleep() puts you into LPM3
sleepSeconds puts you into LPM3
suspend() puts you into LPM4


_bis_SR_register(LPM1_bits);

Interrupts should be setup in the setup() function. You can go to sleep at the end of the setup() function, or in the loop() function.