Chat freely about anything...

User avatar
By Mohanraj M
#48052 Hi,
Is it possible to assign two different GPIO pins for light sleep wake up using gpio_pin_wakeup_enable() ?
I need to perform light sleep wake up, when interrupt received in either of two pins.

Is the following format to assign two different pins is correct method?
Code: Select allgpio_pin_wakeup_enable(GPIO_ID_PIN(pin_1), GPIO_PIN_INTR_HILEVEL);
gpio_pin_wakeup_enable(GPIO_ID_PIN(pin_2), GPIO_PIN_INTR_HILEVEL);

I am using ESP8266_RTOS_SDK_V1.3.0
Please provide me a solution to set two pins for light sleep wakeup.