ESPHome
2024.9.2
esphome
esphome
components
micronova
button
micronova_button.cpp
Go to the documentation of this file.
1
#include "
micronova_button.h
"
2
3
namespace
esphome
{
4
namespace
micronova {
5
6
void
MicroNovaButton::press_action
() {
7
switch
(this->
get_function
()) {
8
case
MicroNovaFunctions::STOVE_FUNCTION_CUSTOM
:
9
this->
micronova_
->
write_address
(this->
memory_location_
, this->
memory_address_
, this->
memory_data_
);
10
break
;
11
default
:
12
break
;
13
}
14
this->
micronova_
->
update
();
15
}
16
17
}
// namespace micronova
18
}
// namespace esphome
esphome::micronova::MicroNovaBaseListener::get_function
MicroNovaFunctions get_function()
Definition:
micronova.h:58
esphome::micronova::MicroNovaButton::press_action
void press_action() override
Definition:
micronova_button.cpp:6
micronova_button.h
esphome::micronova::MicroNovaBaseListener::memory_location_
uint8_t memory_location_
Definition:
micronova.h:69
esphome::micronova::MicroNova::write_address
void write_address(uint8_t location, uint8_t address, uint8_t data)
Definition:
micronova.cpp:118
esphome::micronova::MicroNovaButtonListener::memory_data_
uint8_t memory_data_
Definition:
micronova.h:116
esphome::micronova::MicroNova::update
void update() override
Definition:
micronova.cpp:33
esphome::micronova::MicroNovaBaseListener::micronova_
MicroNova * micronova_
Definition:
micronova.h:67
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::micronova::MicroNovaFunctions::STOVE_FUNCTION_CUSTOM
esphome::micronova::MicroNovaBaseListener::memory_address_
uint8_t memory_address_
Definition:
micronova.h:70
Generated by
1.8.13