This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
pin_sleep_wakup function is missing #194
Open
Description
I want to make sure that I am correct about the firmware issue. I am struggling tried to run a simple deep sleep function test, but finally, I think I found out the culprit. The function pin_deepsleep_wakeup is not included in the LoPy4 firmware version 1.19.0.b2, instead it is pin_sleep_wakeup! (word deep is missing). I am indeed puzzled why no one noticed it.
Orginal code not working:
machine.pin_deepsleep_wakeup(['P8'], mode=machine.WAKEUP_ANY_HIGH, enable_pull=True)
machine.deepsleep(40)
Modified code working:
machine.pin_sleep_wakeup(['P8'], mode=machine.WAKEUP_ANY_HIGH, enable_pull=True)
machine.deepsleep(40)
Dillip
Metadata
Metadata
Assignees
Labels
No labels