maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.1k stars 169 forks source link

ESP8266 - input pins - Handle Interrupts #80

Closed kunjal83 closed 5 years ago

kunjal83 commented 5 years ago

Hi, Can anyone help me understand if there is a possibility of handling interrupts via pins on ESP8266?

Thanks, K

maximkulkin commented 5 years ago

You can handle pin changes with interrupts like this: https://github.com/maximkulkin/esp-homekit-demo/blob/master/examples/sonoff_basic/button.c#L80