ESPHome
2025.10.0-dev
Loading...
Searching...
No Matches
esphome
components
bl0940
button
calibration_reset_button.cpp
Go to the documentation of this file.
1
#include "
calibration_reset_button.h
"
2
#include "
../bl0940.h
"
3
#include "
esphome/core/hal.h
"
4
#include "
esphome/core/log.h
"
5
#include "
esphome/core/application.h
"
6
7
namespace
esphome
{
8
namespace
bl0940 {
9
10
static
const
char
*
const
TAG =
"bl0940.button.calibration_reset"
;
11
12
void
CalibrationResetButton::dump_config
() { LOG_BUTTON(
""
,
"Calibration Reset Button"
,
this
); }
13
14
void
CalibrationResetButton::press_action
() {
15
ESP_LOGI(TAG,
"Resetting calibration defaults..."
);
16
this->
parent_
->reset_calibration();
17
}
18
19
}
// namespace bl0940
20
}
// namespace esphome
application.h
bl0940.h
calibration_reset_button.h
esphome::Parented< BL0940 >::parent_
BL0940 * parent_
Definition
helpers.h:697
esphome::bl0940::CalibrationResetButton::dump_config
void dump_config() override
Definition
calibration_reset_button.cpp:12
esphome::bl0940::CalibrationResetButton::press_action
void press_action() override
Definition
calibration_reset_button.cpp:14
hal.h
log.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0