mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 21:32:21 +01:00
Update mcp4461_output.cpp
This commit is contained in:
@@ -24,6 +24,11 @@ float Mcp4461Wiper::update_state() {
|
||||
return this->state_;
|
||||
}
|
||||
|
||||
bool Mcp4461Wiper::set_state() {
|
||||
if (state) { this->turn_on(); }
|
||||
else { this->turn_off(); }
|
||||
}
|
||||
|
||||
void Mcp4461Wiper::turn_on() { this->parent_->enable_wiper_(this->wiper_); }
|
||||
|
||||
void Mcp4461Wiper::turn_off() { this->parent_->disable_wiper_(this->wiper_); }
|
||||
|
Reference in New Issue
Block a user