combined touch and ext0 wakes get "ValueError: no resources" ?
Posted: Thu Jun 03, 2021 6:46 am
Hi all, Im getting some rare messages when I try to set to both, I mean if or ext0 (@ Pin 15 for instance) wakeup or touch ( Pin(32) for instance).
I ve read some references that with rev 0 and rev1 we cannot set both at the same time to wake if happened one or the other reason.
https://docs.espressif.com/projects/esp ... ep%20modes
....
In revisions 0 and 1 of the ESP32, this wakeup source is incompatible with ULP and touch wakeup sources.
....
I ve set code like:
MicroPython v1.14-119-g6e5aea08a-dirty on 2021-04-15; ESP32 @2021 (spiram) with ESP32-8MB
Type "help()" for more information.
>>> import lib_full as lib
>>> sensor1 = lib.machine.Pin(15, lib.machine.Pin.IN, lib.machine.Pin.PULL_UP) # sensor INT1
>>>
>>> wake = lib.machine.Pin(32, mode = lib.machine.Pin.IN)
>>> touch = lib.machine.TouchPad(wake)
>>> touch.config(500)
>>> lib.esp32.wake_on_ext0( lib.machine.Pin(15), level = lib.esp32.WAKEUP_ANY_HIGH)
>>> lib.esp32.wake_on_touch(True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: no resources
>>>
test module is a wrover-e, rev3 flashed compiled with spiram enabled
can anyone confirm if with rev 3 and Mpy 1.15 or similar I could set to wakeup combining those wakes touch and ext0 (or ext1) ?
thanks in advance.
M
I ve read some references that with rev 0 and rev1 we cannot set both at the same time to wake if happened one or the other reason.
https://docs.espressif.com/projects/esp ... ep%20modes
....
In revisions 0 and 1 of the ESP32, this wakeup source is incompatible with ULP and touch wakeup sources.
....
I ve set code like:
MicroPython v1.14-119-g6e5aea08a-dirty on 2021-04-15; ESP32 @2021 (spiram) with ESP32-8MB
Type "help()" for more information.
>>> import lib_full as lib
>>> sensor1 = lib.machine.Pin(15, lib.machine.Pin.IN, lib.machine.Pin.PULL_UP) # sensor INT1
>>>
>>> wake = lib.machine.Pin(32, mode = lib.machine.Pin.IN)
>>> touch = lib.machine.TouchPad(wake)
>>> touch.config(500)
>>> lib.esp32.wake_on_ext0( lib.machine.Pin(15), level = lib.esp32.WAKEUP_ANY_HIGH)
>>> lib.esp32.wake_on_touch(True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: no resources
>>>
test module is a wrover-e, rev3 flashed compiled with spiram enabled
can anyone confirm if with rev 3 and Mpy 1.15 or similar I could set to wakeup combining those wakes touch and ext0 (or ext1) ?
thanks in advance.
M