ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
mt6701_spi
text_sensor
mt6701_spi_field_status.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/mt6701_spi/mt6701_spi.h
"
4
#include "
esphome/components/text_sensor/text_sensor.h
"
5
#include "
esphome/core/component.h
"
6
#include "
esphome/core/helpers.h
"
7
8
namespace
esphome::mt6701_spi
{
9
10
// Reports the magnetic field strength the status bits Mg[1:0] carry
11
class
MT6701SPIFieldStatus
:
public
text_sensor::TextSensor
,
12
public
PollingComponent
,
13
public
Parented
<MT6701SPIComponent> {
14
public
:
15
void
update
()
override
;
16
void
dump_config
()
override
;
17
};
18
19
}
// namespace esphome::mt6701_spi
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:2073
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:519
esphome::mt6701_spi::MT6701SPIFieldStatus
Definition
mt6701_spi_field_status.h:13
esphome::mt6701_spi::MT6701SPIFieldStatus::update
void update() override
Definition
mt6701_spi_field_status.cpp:12
esphome::mt6701_spi::MT6701SPIFieldStatus::dump_config
void dump_config() override
Definition
mt6701_spi_field_status.cpp:23
esphome::text_sensor::TextSensor
Definition
text_sensor.h:29
component.h
helpers.h
mt6701_spi.h
esphome::mt6701_spi
Definition
mt6701_spi_binary_sensors.cpp:5
text_sensor.h
Generated by
1.12.0