object has no attribute 'pin_deepsleep_wakeup
-
I am trying to debug an intermittent "fail to wake from deepsleep" problem with my fipy+pytrack. Besides the timer I want to use the pytrack button to wake the fipy. The simple program to demo:
import machine print("debug wake") print(machine.wake_reason()) machine.pin_deepsleep_wakeup(pins = ('P14',), mode = machine.WAKEUP_ALL_LOW, enable_pull = True)
>>> debug wake (0, None) Traceback (most recent call last): File "<stdin>", line 5, in <module> AttributeError: 'module' object has no attribute 'pin_deepsleep_wakeup' > Pycom MicroPython 1.20.0.rc4 [v1.9.4-1444e48] on 2019-01-07; FiPy with ESP32 Type "help()" for more information. >>>
The code understands the first call to module machine, but not the second. Please help.
Note that I am using a development version of Pycom, and no PyBytes. If I understand docs well, the pin_deepsleep_wakeup method is supported for the Fipy.
-
Found a start of an answer here: https://forum.pycom.io/topic/3624/machine-pin_deepsleep_wakeup-function-is-not-working-in-lopy4-firmware-version-1-19-0-b2
Link to developemtn documentation on github: https://github.com/pycom/pycom-documentation/tree/development_release/firmwareapi/pycom/machine
The method is renamed to pin_sleep_wakeup()