Skip to content
Discussion options

You must be logged in to vote

Deep sleep with EXT1 is enough for this, and the "wake on the opposite level" pattern takes care of missed transitions. Going through your questions, with references to esp_sleep.h in ESP-IDF 5.5, which Arduino-ESP32 3.x is built on:

1. Two inputs on EXT1: yes. On the ESP32-C6, EXT1 can watch any of GPIO0–GPIO7 (the LP GPIOs), as many as you like.

2. Different levels per pin: yes, the C6 supports a level per pin. esp_sleep_enable_ext1_wakeup_with_level_mask() still works but is deprecated. The replacement is esp_sleep_enable_ext1_wakeup_io(mask, mode), called once per pin with that pin's own mode.

3. Both transitions: yes, reconfigure on every wake. Read each contact, then arm it to wake …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aMarin72
Comment options

Answer selected by P-R-O-C-H-Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants