ESPHome
2024.11.2
|
Helper class to request loop()
to be called as fast as possible.
More...
#include <helpers.h>
Public Member Functions | |
void | start () |
Start running the loop continuously. More... | |
void | stop () |
Stop running the loop continuously. More... | |
Static Public Member Functions | |
static bool | is_high_frequency () |
Check whether the loop is running continuously. More... | |
Protected Attributes | |
bool | started_ {false} |
Static Protected Attributes | |
static uint8_t | num_requests = 0 |
Helper class to request loop()
to be called as fast as possible.
Usually the ESPHome main loop runs at 60 Hz, sleeping in between invocations of loop()
if necessary. When a higher execution frequency is necessary, you can use this class to make the loop run continuously without waiting.
|
static |
Check whether the loop is running continuously.
Definition at line 665 of file helpers.cpp.
void esphome::HighFrequencyLoopRequester::start | ( | ) |
Start running the loop continuously.
Definition at line 653 of file helpers.cpp.
void esphome::HighFrequencyLoopRequester::stop | ( | ) |
Stop running the loop continuously.
Definition at line 659 of file helpers.cpp.
|
staticprotected |
|
protected |