Open rix133 opened 5 years ago
inside the main loop: if I do: digitalRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S); it goes to sleep for 4 seconds
digitalRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S);
if I do: analogRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S); no sleep will happen and it will continuously run the loop.
analogRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S);
Same problem...
I found that if you call PMU.sleep twice after analogRead, the second will work...
inside the main loop: if I do:
digitalRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S);
it goes to sleep for 4 secondsif I do:
analogRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S);
no sleep will happen and it will continuously run the loop.