6static void IRAM_ATTR interrupt_pin_isr(Component *arg) { arg->enable_loop_soon_any_context(); }
void enable_loop()
Enable this component's loop.
void disable_loop()
Disable this component's loop.
void attach_interrupt(void(*func)(T *), T *arg, gpio::InterruptType type) const
bool digital_read() override
InternalGPIOPin * interrupt_pin_
bool attach_interrupt_pin_()
Attach the falling-edge ISR when there is an interrupt pin, then disable the loop until an input need...
void disable_loop_when_released_()
The loop runs again after the INT line falls; stop it once the line is released (HIGH).