ReactESP 3.0.1
Asynchronous programming for the ESP microcontrollers
|
Event that is triggered on an input pin change. More...
#include <ReactESP.h>
Public Member Functions | |
ISREvent (uint8_t pin_number, int mode, react_callback callback) | |
Construct a new ISREvent object. | |
void | add (EventLoop *event_loop) override |
void | remove (EventLoop *event_loop) override |
void | tick (EventLoop *event_loop) override |
![]() | |
Event (react_callback callback) | |
Construct a new Event object. | |
Event (const Event &)=delete | |
Event (Event &&)=delete | |
Event & | operator= (const Event &)=delete |
Event & | operator= (Event &&)=delete |
![]() | |
virtual | ~EventInterface ()=default |
Default virtual destructor. | |
Additional Inherited Members | |
![]() | |
const react_callback | callback |
Event that is triggered on an input pin change.
Definition at line 207 of file ReactESP.h.
|
inline |
Construct a new ISREvent object.
pin_number | GPIO pin number to which the interrupt is attached |
mode | Interrupt mode. One of RISING, FALLING, CHANGE |
callback | Interrupt callback. Keep this function short and add the ICACHE_RAM_ATTR attribute. |
Definition at line 226 of file ReactESP.h.
|
overridevirtual |
Implements reactesp::EventInterface.
Definition at line 92 of file ReactESP.cpp.
|
overridevirtual |
Implements reactesp::EventInterface.
Definition at line 101 of file ReactESP.cpp.
|
inlineoverridevirtual |
Implements reactesp::EventInterface.
Definition at line 256 of file ReactESP.h.