20 void setup()
override;
void write_state(float state) override
std::unique_ptr< Trigger<> > turn_off_trigger_
float get_setup_priority() const override
HARDWARE setup_priority.
Base class for all output components that can output a variable level, like PWM.
std::unique_ptr< Trigger<> > turn_on_trigger_
void set_pin(GPIOPin *pin)
void set_output_state_(bool state)
turn on/off the configured output
Trigger * get_turn_off_trigger()
uint32_t IRAM_ATTR HOT millis()
void set_period(unsigned int period)
unsigned int period_start_time_
Trigger * get_turn_on_trigger()
void dump_config() override
bool restart_cycle_on_state_change_
void set_restart_cycle_on_state_change(bool restart_cycle_on_state_change)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Trigger< bool > * get_state_change_trigger()
void setup() override
Initialize pin.
Implementation of SPI Controller mode.
std::unique_ptr< Trigger< bool > > state_change_trigger_