rocketscream / Low-Power

Low Power Library for Arduino
www.rocketscream.com
1.26k stars 345 forks source link

Powering down arduino indefinetly #96

Closed batata004 closed 4 years ago

batata004 commented 4 years ago

Hi,

I have a code that when it reaches a conditional, I want arduino to go to sleep permanently, saving as much battery as possible. I am using this:

LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);

However it sleeps for only 8S. Is there a way I can make it sleep indefinitly until I power off/power on it again?

nimasaj commented 4 years ago

Why not using LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF); ?

batata004 commented 4 years ago

SLEEP_FOREVER does it exist? great!