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

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
User avatar
rcolistete
Posts: 150
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

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

Post by rcolistete » Thu Jun 27, 2019 3:24 pm

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.
Last edited by rcolistete on Thu Jun 27, 2019 5:45 pm, edited 1 time in total.

User avatar
pythoncoder
Posts: 3539
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

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

Post by pythoncoder » Thu Jun 27, 2019 4:36 pm

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.
Peter Hinch

Post Reply