ESPHome  2024.9.2
reconfig_buttons.h
Go to the documentation of this file.
1 #pragma once
2 
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
Base class for all buttons.
Definition: button.h:29
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Helper class to easily give an object a parent of type T.
Definition: helpers.h:521