5 namespace sigma_delta_output {
7 static const char *
const TAG =
"output.sigma_delta";
15 ESP_LOGCONFIG(TAG,
"Sigma Delta Output:");
16 LOG_PIN(
" Pin: ", this->
pin_);
18 ESP_LOGCONFIG(TAG,
" State change automation configured");
21 ESP_LOGCONFIG(TAG,
" Turn on automation configured");
24 ESP_LOGCONFIG(TAG,
" Turn off automation configured");
26 LOG_UPDATE_INTERVAL(
this);
27 LOG_FLOAT_OUTPUT(
this);
32 const bool next_value = this->
accum_ > 0;
38 if (next_value != this->
value_) {
virtual void digital_write(bool value)=0
void dump_config() override
std::unique_ptr< Trigger< bool > > state_change_trigger_
std::unique_ptr< Trigger<> > turn_on_trigger_
std::unique_ptr< Trigger<> > turn_off_trigger_
Implementation of SPI Controller mode.