ESPHome
2026.5.0b1
Loading...
Searching...
No Matches
esphome
components
tmp102
tmp102.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::tmp102
{
8
9
class
TMP102Component
:
public
PollingComponent
,
public
i2c::I2CDevice
,
public
sensor::Sensor
{
10
public
:
11
void
dump_config
()
override
;
12
void
update
()
override
;
13
};
14
15
}
// namespace esphome::tmp102
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:602
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:132
esphome::sensor::Sensor
Base-class for all sensors.
Definition
sensor.h:47
esphome::tmp102::TMP102Component
Definition
tmp102.h:9
esphome::tmp102::TMP102Component::dump_config
void dump_config() override
Definition
tmp102.cpp:17
esphome::tmp102::TMP102Component::update
void update() override
Definition
tmp102.cpp:27
component.h
i2c.h
esphome::tmp102
Definition
tmp102.cpp:5
sensor.h
Generated by
1.12.0