9 static const char *
const TAG =
"status_led";
15 ESP_LOGV(TAG,
"New app state 0x%08" PRIX32, new_state);
30 ESP_LOGD(TAG,
"Restoring light state %s", ONOFF(state));
39 ESP_LOGD(TAG,
"'%s': Setting initial state", state->
get_name().
c_str());
50 ESP_LOGD(TAG,
"'%s': Setting state %s", state->
get_name().
c_str(), ONOFF(binary));
56 ESP_LOGCONFIG(TAG,
"Setting up Status LED...");
58 if (this->
pin_ !=
nullptr) {
65 ESP_LOGCONFIG(TAG,
"Status Led Light:");
66 LOG_PIN(
" Pin: ", this->
pin_);
70 if (this->
pin_ !=
nullptr)
virtual void digital_write(bool value)=0
light::LightState * lightstate_
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
virtual void set_state(bool state)
Enable or disable this binary output.
output::BinaryOutput * output_
uint32_t IRAM_ATTR HOT millis()
void current_values_as_binary(bool *binary)
The result of all the current_values_as_* methods have gamma correction applied.
void setup_state(light::LightState *state) override
void write_state(light::LightState *state) override
Application App
Global storage of Application pointer - only one Application can exist.
const uint32_t STATUS_LED_WARNING
constexpr const char * c_str() const
void dump_config() override
const uint32_t STATUS_LED_ERROR
uint32_t get_app_state() const
Implementation of SPI Controller mode.
const uint32_t STATUS_LED_MASK
void output_state_(bool state)
const StringRef & get_name() const