Please have a look at this, It has Arduino library OneButtom with ESP-IDF framework https://youtu.be/vOFBraeLQM0
I was banging my head to design a single button for multi functions, this helped me a lot. I think this would help others too
External wakeup pin detect issue
-
- Posts: 2
- Joined: Thu Jun 03, 2021 9:52 am
Re: External wakeup pin detect issue
Facing similar issue with pins 14 and 33 for ext1_wakeup.
Tested with PIR-sensors as triggers.
Interrupt on pin 14 works as expected. If pin 33 is triggered esp_sleep_get_ext1_wakeup_status() returns 0;
Tested with PIR-sensors as triggers.
Interrupt on pin 14 works as expected. If pin 33 is triggered esp_sleep_get_ext1_wakeup_status() returns 0;
-
- Posts: 2
- Joined: Thu Jun 03, 2021 9:52 am
Re: External wakeup pin detect issue
the solution is
Code: Select all
uint64_t GPIO_reason = esp_sleep_get_ext1_wakeup_status();
Who is online
Users browsing this forum: No registered users and 58 guests