issue waking from Pin change

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
seandepagnier
Posts: 15
Joined: Tue Feb 25, 2020 5:10 pm

issue waking from Pin change

Post by seandepagnier » Mon Oct 05, 2020 12:49 am

when I try to use ext1:

Code: Select all

MicroPython v1.9.4 on 2018-05-11; ESP32 module with ESP32
Type "help()" for more information.
>>> from machine import Pin
>>> p=Pin(12, Pin.IN, Pin.PULL_UP)
>>> 
>>> import esp32
>>> esp32.wake_on_ext1((p,), esp32.WAKEUP_ALL_LOW)
>>> import machine
>>> machine.deepsleep()
It just resets immediately and does not wait for the pin to get pulled low like ext0 does

seandepagnier
Posts: 15
Joined: Tue Feb 25, 2020 5:10 pm

Re: issue waking from Pin change

Post by seandepagnier » Mon Oct 05, 2020 2:06 am

it works if the pulldown is used and the change is when the pin is high, but not the other way around

Post Reply