mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-18 20:23:27 +02:00
13994d9bd1
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Graham Brown <grahambrown11@gmail.com>
19 lines
431 B
C++
19 lines
431 B
C++
#include "micronova_button.h"
|
|
|
|
namespace esphome {
|
|
namespace micronova {
|
|
|
|
void MicroNovaButton::press_action() {
|
|
switch (this->get_function()) {
|
|
case MicroNovaFunctions::STOVE_FUNCTION_CUSTOM:
|
|
this->micronova_->write_address(this->memory_location_, this->memory_address_, this->memory_data_);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
this->micronova_->update();
|
|
}
|
|
|
|
} // namespace micronova
|
|
} // namespace esphome
|