Arduino_XI icon indicating copy to clipboard operation
Arduino_XI copied to clipboard

Power management unit (PMU) can't handle analogRead

Open rix133 opened this issue 6 years ago • 2 comments

inside the main loop: if I do: digitalRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S); it goes to sleep for 4 seconds

if I do: analogRead(A3); PMU.sleep(PM_POFFS0, SLEEP_4S); no sleep will happen and it will continuously run the loop.

rix133 avatar Apr 17 '19 12:04 rix133

Same problem...

njbinbin avatar Jun 27 '20 21:06 njbinbin

I found that if you call PMU.sleep twice after analogRead, the second will work...

njbinbin avatar Jun 28 '20 04:06 njbinbin