1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-21 20:52:20 +01:00

Update mcp4461.cpp

This commit is contained in:
Oliver Kleinecke
2025-02-07 17:21:00 +01:00
committed by GitHub
parent 367abc24b4
commit adf81b9507

View File

@@ -43,6 +43,11 @@ void Mcp4461Component::begin_() {
} }
} }
void Mcp4461Wiper::set_initial_value(Mcp4461WiperIdx wiper, float initial_value) {
uint8_t wiper_id = static_cast<uint8_t>(wiper);
this->reg_[wiper_id].initial_value = initial_value;
}
void Mcp4461Component::set_write_protection_status_() { void Mcp4461Component::set_write_protection_status_() {
uint8_t status_register_value; uint8_t status_register_value;
status_register_value = this->get_status_register(); status_register_value = this->get_status_register();