ESPHome
2024.10.2
esphome
esphome
components
esp32_hall
esp32_hall.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/sensor/sensor.h
"
5
6
#ifdef USE_ESP32
7
8
namespace
esphome
{
9
namespace
esp32_hall {
10
11
class
ESP32HallSensor
:
public
sensor::Sensor
,
public
PollingComponent
{
12
public
:
13
void
dump_config
()
override
;
14
15
void
update
()
override
;
16
17
std::string
unique_id
()
override
;
18
};
19
20
}
// namespace esp32_hall
21
}
// namespace esphome
22
23
#endif
esphome::esp32_hall::ESP32HallSensor::unique_id
std::string unique_id() override
Definition:
esp32_hall.cpp:19
esphome::esp32_hall::ESP32HallSensor::dump_config
void dump_config() override
Definition:
esp32_hall.cpp:20
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition:
component.h:283
sensor.h
esphome::esp32_hall::ESP32HallSensor
Definition:
esp32_hall.h:11
esphome::esp32_hall::ESP32HallSensor::update
void update() override
Definition:
esp32_hall.cpp:12
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
Generated by
1.8.13