ESPHome
2024.9.2
esphome
esphome
components
ld2420
button
reconfig_buttons.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/button/button.h
"
4
#include "../ld2420.h"
5
6
namespace
esphome
{
7
namespace
ld2420 {
8
9
class
LD2420ApplyConfigButton
:
public
button::Button
,
public
Parented
<LD2420Component> {
10
public
:
11
LD2420ApplyConfigButton
() =
default
;
12
13
protected
:
14
void
press_action
()
override
;
15
};
16
17
class
LD2420RevertConfigButton
:
public
button::Button
,
public
Parented
<LD2420Component> {
18
public
:
19
LD2420RevertConfigButton
() =
default
;
20
21
protected
:
22
void
press_action
()
override
;
23
};
24
25
class
LD2420RestartModuleButton
:
public
button::Button
,
public
Parented
<LD2420Component> {
26
public
:
27
LD2420RestartModuleButton
() =
default
;
28
29
protected
:
30
void
press_action
()
override
;
31
};
32
33
class
LD2420FactoryResetButton
:
public
button::Button
,
public
Parented
<LD2420Component> {
34
public
:
35
LD2420FactoryResetButton
() =
default
;
36
37
protected
:
38
void
press_action
()
override
;
39
};
40
41
}
// namespace ld2420
42
}
// namespace esphome
esphome::ld2420::LD2420RestartModuleButton
Definition:
reconfig_buttons.h:25
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
button.h
esphome::ld2420::LD2420FactoryResetButton
Definition:
reconfig_buttons.h:33
esphome::ld2420::LD2420RevertConfigButton
Definition:
reconfig_buttons.h:17
esphome::ld2420::LD2420ApplyConfigButton::LD2420ApplyConfigButton
LD2420ApplyConfigButton()=default
esphome::ld2420::LD2420ApplyConfigButton::press_action
void press_action() override
Definition:
reconfig_buttons.cpp:10
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition:
helpers.h:521
esphome::ld2420::LD2420ApplyConfigButton
Definition:
reconfig_buttons.h:9
Generated by
1.8.13