ESPHome
2024.10.2
esphome
esphome
components
micronova
button
micronova_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/micronova/micronova.h
"
4
#include "
esphome/core/component.h
"
5
#include "
esphome/components/button/button.h
"
6
7
namespace
esphome
{
8
namespace
micronova {
9
10
class
MicroNovaButton
:
public
Component
,
public
button::Button
,
public
MicroNovaButtonListener
{
11
public
:
12
MicroNovaButton
(
MicroNova
*
m
) :
MicroNovaButtonListener
(m) {}
13
void
dump_config
()
override
{ LOG_BUTTON(
""
,
"Micronova button"
,
this
); }
14
15
void
set_memory_data
(uint8_t f) { this->
memory_data_
= f; }
16
uint8_t
get_memory_data
() {
return
this->
memory_data_
; }
17
18
protected
:
19
void
press_action
()
override
;
20
};
21
22
}
// namespace micronova
23
}
// namespace esphome
esphome::micronova::MicroNovaButton::dump_config
void dump_config() override
Definition:
micronova_button.h:13
esphome::micronova::MicroNovaButton::set_memory_data
void set_memory_data(uint8_t f)
Definition:
micronova_button.h:15
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
esphome::micronova::MicroNovaButton::press_action
void press_action() override
Definition:
micronova_button.cpp:6
esphome::Component
Definition:
component.h:68
esphome::micronova::MicroNovaButton
Definition:
micronova_button.h:10
button.h
esphome::micronova::MicroNova
Definition:
micronova.h:121
micronova.h
esphome::micronova::MicroNovaButtonListener::memory_data_
uint8_t memory_data_
Definition:
micronova.h:116
esphome::micronova::MicroNovaButton::MicroNovaButton
MicroNovaButton(MicroNova *m)
Definition:
micronova_button.h:12
esphome::micronova::MicroNovaButtonListener
Definition:
micronova.h:111
esphome::micronova::MicroNovaButton::get_memory_data
uint8_t get_memory_data()
Definition:
micronova_button.h:16
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
m
uint8_t m
Definition:
bl0906.h:208
Generated by
1.8.13