ESPHome
2026.5.0b1
Loading...
Searching...
No Matches
esphome
components
seeed_mr24hpc1
button
restart_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/button/button.h
"
4
#include "
../seeed_mr24hpc1.h
"
5
6
namespace
esphome::seeed_mr24hpc1
{
7
8
class
RestartButton
:
public
button::Button
,
public
Parented
<MR24HPC1Component> {
9
public
:
10
RestartButton
() =
default
;
11
12
protected
:
13
void
press_action
()
override
;
14
};
15
16
}
// namespace esphome::seeed_mr24hpc1
button.h
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::button::Button
Base class for all buttons.
Definition
button.h:25
esphome::seeed_mr24hpc1::RestartButton
Definition
restart_button.h:8
esphome::seeed_mr24hpc1::RestartButton::press_action
void press_action() override
Definition
restart_button.cpp:5
esphome::seeed_mr24hpc1::RestartButton::RestartButton
RestartButton()=default
esphome::seeed_mr24hpc1
Definition
custom_mode_end_button.cpp:3
seeed_mr24hpc1.h
Generated by
1.12.0