7 static const char *
const TAG =
"output.slow_pwm";
22 ESP_LOGV(TAG,
"Switching output pin %s to %s", this->
pin_->
dump_summary().c_str(), ONOFF(new_state));
24 ESP_LOGV(TAG,
"Switching to %s", ONOFF(new_state));
46 ESP_LOGVV(TAG,
"End of period. State: %f, Scaled state: %f", this->
state_, scaled_state);
54 ESP_LOGCONFIG(TAG,
"Slow PWM Output:");
55 LOG_PIN(
" Pin: ", this->
pin_);
57 ESP_LOGCONFIG(TAG,
" State change automation configured");
60 ESP_LOGCONFIG(TAG,
" Turn on automation configured");
63 ESP_LOGCONFIG(TAG,
" Turn off automation configured");
65 ESP_LOGCONFIG(TAG,
" Period: %d ms", this->
period_);
67 LOG_FLOAT_OUTPUT(
this);
virtual void digital_write(bool value)=0
void write_state(float state) override
std::unique_ptr< Trigger<> > turn_off_trigger_
std::unique_ptr< Trigger<> > turn_on_trigger_
virtual void turn_off()
Disable this binary output.
void set_output_state_(bool state)
turn on/off the configured output
uint32_t IRAM_ATTR HOT millis()
virtual std::string dump_summary() const =0
unsigned int period_start_time_
void dump_config() override
bool restart_cycle_on_state_change_
void setup() override
Initialize pin.
Implementation of SPI Controller mode.
std::unique_ptr< Trigger< bool > > state_change_trigger_