- Mon Apr 24, 2017 2:50 pm
#194518
Hello!
I am using the below library and instructions in order to put my UNO on sleep mode when it does not have anything to do for a while:
#include <LowPower.h>
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
Problem: I am also using millis() to keep track of time, and this method seems to reset millis() to zero every time it is used, so my program does not work any more...
Is there another clock that is accessible and not turned off or reset by this method? how to use it?
eventually I want to migrate to a Pro Mini, so the solution should work there, too.
Regards,
Pascal.
I am using the below library and instructions in order to put my UNO on sleep mode when it does not have anything to do for a while:
#include <LowPower.h>
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
Problem: I am also using millis() to keep track of time, and this method seems to reset millis() to zero every time it is used, so my program does not work any more...
Is there another clock that is accessible and not turned off or reset by this method? how to use it?
eventually I want to migrate to a Pro Mini, so the solution should work there, too.
Regards,
Pascal.