ESPHome
2024.9.2
esphome
esphome
components
safe_mode
button
safe_mode_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/button/button.h
"
4
#include "
esphome/components/safe_mode/safe_mode.h
"
5
#include "
esphome/core/component.h
"
6
7
namespace
esphome
{
8
namespace
safe_mode {
9
10
class
SafeModeButton
:
public
button::Button
,
public
Component
{
11
public
:
12
void
dump_config
()
override
;
13
void
set_safe_mode
(
SafeModeComponent
*safe_mode_component);
14
15
protected
:
16
SafeModeComponent
*
safe_mode_component_
;
17
void
press_action
()
override
;
18
};
19
20
}
// namespace safe_mode
21
}
// namespace esphome
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
esphome::Component
Definition:
component.h:68
button.h
safe_mode.h
esphome::safe_mode::SafeModeButton::set_safe_mode
void set_safe_mode(SafeModeComponent *safe_mode_component)
Definition:
safe_mode_button.cpp:11
esphome::safe_mode::SafeModeButton::press_action
void press_action() override
Definition:
safe_mode_button.cpp:15
esphome::safe_mode::SafeModeButton::dump_config
void dump_config() override
Definition:
safe_mode_button.cpp:24
esphome::safe_mode::SafeModeButton
Definition:
safe_mode_button.h:10
esphome::safe_mode::SafeModeComponent
SafeModeComponent provides a safe way to recover from repeated boot failures.
Definition:
safe_mode.h:12
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::safe_mode::SafeModeButton::safe_mode_component_
SafeModeComponent * safe_mode_component_
Definition:
safe_mode_button.h:16
Generated by
1.8.13