ESPHome
2025.9.0-dev
Loading...
Searching...
No Matches
esphome
components
tof10120
tof10120_sensor.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
#include "
esphome/components/i2c/i2c.h
"
6
7
namespace
esphome
{
8
namespace
tof10120 {
9
10
class
TOF10120Sensor
:
public
sensor::Sensor
,
public
PollingComponent
,
public
i2c::I2CDevice
{
11
public
:
12
void
setup
()
override
;
13
14
void
dump_config
()
override
;
15
void
update
()
override
;
16
};
17
}
// namespace tof10120
18
}
// namespace esphome
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:425
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:133
esphome::sensor::Sensor
Base-class for all sensors.
Definition
sensor.h:59
esphome::tof10120::TOF10120Sensor
Definition
tof10120_sensor.h:10
esphome::tof10120::TOF10120Sensor::setup
void setup() override
Definition
tof10120_sensor.cpp:26
esphome::tof10120::TOF10120Sensor::dump_config
void dump_config() override
Definition
tof10120_sensor.cpp:20
esphome::tof10120::TOF10120Sensor::update
void update() override
Definition
tof10120_sensor.cpp:28
component.h
i2c.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
sensor.h
Generated by
1.12.0