You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
Hi
I want to modify the project to add 2 sensors (for mailbox notification).
So the ESP32 must wake up if any of the 2 reed contacts is "pushed"
I found out, that there is an function
esp_deep_sleep_enable_ext1_wakeup
( [https://esp-idf.readthedocs.io/en/v2.0/api/system/deep_sleep.html] )
But i don't get i work. How can I define that the ESP is waking up when a reed contact on GPIO 33 or 34 is pushed?
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Pullup/down is disabled by default with ext1, so you need to enable it for all needed pins: gpio_pulldown_en((gpio_num_t)flapPin);
Then use the ext1 method with a mask of the pins, so you need to calculate the bits: static const uint64_t flapSel = ((uint64_t)(((uint64_t)1)<<flapPin)); esp_sleep_enable_ext1_wakeup(flapSel | doorSel, ESP_EXT1_WAKEUP_ANY_HIGH);
Hi
I want to modify the project to add 2 sensors (for mailbox notification).
So the ESP32 must wake up if any of the 2 reed contacts is "pushed"
I found out, that there is an function
esp_deep_sleep_enable_ext1_wakeup
( [https://esp-idf.readthedocs.io/en/v2.0/api/system/deep_sleep.html] )
But i don't get i work. How can I define that the ESP is waking up when a reed contact on GPIO 33 or 34 is pushed?
Thanks a lot!
The text was updated successfully, but these errors were encountered: