Hello,
I have 2 reed switch (or buttons) on 34 and 35 (connected with pull pin-> 10k/3.3V ->GND)
using esp_sleep_enable_ext0_wakeup(34,LOW) is working fine -> wake up the board
using esp_sleep_enable_ext0_wakeup(35,LOW) is working fine -> wake up the board
but when I want or 34 or 35 to wake the board
esp_sleep_enable_ext1_wakeup(GPIO_SEL_34 | GPIO_SEL_35, ESP_EXT1_WAKEUP_ALL_LOW)
doesn't work.
I can not use ESP_EXT1_WAKEUP_ANY_HIGH because the board is entering and immediately exit from in deep sleep.
The External wakeup (ext1) documentation says:
RTC controller contains logic to trigger wakeup using multiple RTC GPIOs. One of the two logic functions can be used to trigger wakeup:
wake up if any of the selected pins is low
How I can have interrupt on 2 pins for LOW event?
Deepsleep with 2 reed switch
Re: Deepsleep with 2 reed switch
You could tryESP_EXT1_WAKEUP_ALL_LOW: wake up when all selected GPIOs are low
ESP_EXT1_WAKEUP_ANY_HIGH: wake up when any of the selected GPIOs is high
Code: Select all
esp_sleep_enable_ext0_wakeup(34,LOW);
esp_sleep_enable_ext1_wakeup(GPIO_SEL_35, ESP_EXT1_WAKEUP_ALL_LOW);
Who is online
Users browsing this forum: Bing [Bot] and 143 guests