External wakeup pin detect issue

ksnboopa
Posts: 9
Joined: Sun May 03, 2020 3:19 pm

Re: External wakeup pin detect issue

Postby ksnboopa » Mon Feb 15, 2021 11:41 am

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

hongpingguo321
Posts: 2
Joined: Thu Jun 03, 2021 9:52 am

Re: External wakeup pin detect issue

Postby hongpingguo321 » Thu Jun 03, 2021 10:05 am

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;

hongpingguo321
Posts: 2
Joined: Thu Jun 03, 2021 9:52 am

Re: External wakeup pin detect issue

Postby hongpingguo321 » Thu Jun 03, 2021 10:41 am

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