ESPHome
2026.8.0b4
Loading...
Searching...
No Matches
esphome
components
ld6002b
button
ld6002b_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/button/button.h
"
4
#include "
../ld6002b.h
"
5
6
namespace
esphome::ld6002b
{
7
8
class
LD6002BButton
:
public
button::Button
,
public
Parented
<LD6002BComponent> {
9
public
:
10
explicit
LD6002BButton
(
ButtonType
type
) :
type_
(
type
) {}
11
12
protected
:
13
void
press_action
()
override
;
14
15
ButtonType
type_
;
16
};
17
18
}
// namespace esphome::ld6002b
button.h
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1907
esphome::button::Button
Base class for all buttons.
Definition
button.h:25
esphome::ld6002b::LD6002BButton
Definition
ld6002b_button.h:8
esphome::ld6002b::LD6002BButton::LD6002BButton
LD6002BButton(ButtonType type)
Definition
ld6002b_button.h:10
esphome::ld6002b::LD6002BButton::type_
ButtonType type_
Definition
ld6002b_button.h:15
esphome::ld6002b::LD6002BButton::press_action
void press_action() override
Definition
ld6002b_button.cpp:5
type
uint16_t type
Definition
dns_server_esp32_idf.cpp:0
ld6002b.h
esphome::ld6002b
Definition
ld6002b_button.cpp:3
esphome::ld6002b::ButtonType
ButtonType
Definition
ld6002b.h:69
Generated by
1.12.0