ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
bl0940
button
calibration_reset_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/button/button.h
"
5
6
namespace
esphome::bl0940
{
7
8
class
BL0940;
// Forward declaration of BL0940 class
9
10
class
CalibrationResetButton
:
public
button::Button
,
public
Component
,
public
Parented
<BL0940> {
11
public
:
12
void
dump_config
()
override
;
13
14
void
press_action
()
override
;
15
};
16
17
}
// namespace esphome::bl0940
button.h
esphome::Component
Definition
component.h:145
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::bl0940::CalibrationResetButton
Definition
calibration_reset_button.h:10
esphome::bl0940::CalibrationResetButton::dump_config
void dump_config() override
Definition
calibration_reset_button.cpp:11
esphome::bl0940::CalibrationResetButton::press_action
void press_action() override
Definition
calibration_reset_button.cpp:13
esphome::button::Button
Base class for all buttons.
Definition
button.h:25
component.h
esphome::bl0940
Definition
bl0940.cpp:5
Generated by
1.12.0