Page 1 of 1

Low power support on Pyboard D : pyb.wfi, pyb.stop, pyb.standby(), etc

Posted: Thu Jun 27, 2019 3:24 pm
by rcolistete
Is there to Pyboard D any equivalent of script "lowpower.py" from Pyboard 1.1 :
https://gist.github.com/dpgeorge/bf477eb883b6d189eae9
from topic "low power support?" ?

Is "pyb.wfi()" working on Pyboard D ? Some tests don't show any difference in power usage.

Re: Low power support on Pyboard D : pyb.wfi, pyb.stop, pyb.standby(), etc

Posted: Thu Jun 27, 2019 4:36 pm
by pythoncoder
I never found a use for pyb.wfi() because, as stated in the docs, the system tick interrupt cancels it after 1ms max. It's not clear to me how you'd use it effectively in any practical application.

I have tested pyb.stop() on the Pyboard D and it works as expected. You might be interested in this issue on two counts. Firstly it includes advice from @Damien on configuring pins. And secondly my post of April 24t indicates a problem I experienced which is awaiting resolution.