8static const char *
const TAG =
"status_led";
10static constexpr uint32_t ERROR_PERIOD_MS = 250;
11static constexpr uint32_t ERROR_ON_MS = 150;
12static constexpr uint32_t WARNING_PERIOD_MS = 1500;
13static constexpr uint32_t WARNING_ON_MS = 250;
23 ESP_LOGCONFIG(TAG,
"Status LED:");
24 LOG_PIN(
" Pin: ", this->
pin_);
uint8_t get_app_state() const
Return the public app state status bits (STATUS_LED_* only).
void disable_loop()
Disable this component's loop.
virtual void digital_write(bool value)=0
void dump_config() override
float get_setup_priority() const override
constexpr float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
StatusLED * global_status_led
Providing packet encoding functions for exchanging data with a remote host.
constexpr uint8_t STATUS_LED_WARNING
uint32_t IRAM_ATTR HOT millis()
Application App
Global storage of Application pointer - only one Application can exist.
constexpr uint8_t STATUS_LED_ERROR