ESPHome
2026.11.0b6
Loading...
Searching...
No Matches
esphome
components
hdc1080
hdc1080.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::hdc1080
{
8
9
class
HDC1080Component
final :
public
PollingComponent
,
public
i2c::I2CDevice
{
10
SUB_SENSOR(
temperature
)
11
SUB_SENSOR(humidity)
12
13
public
:
14
void
setup
()
override
;
15
void
dump_config()
override
;
16
void
update()
override
;
17
};
18
19
}
// namespace esphome::hdc1080
esphome::Component::setup
virtual void setup()
Where the component's initialization should happen.
Definition
component.cpp:84
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:532
esphome::hdc1080::HDC1080Component
Definition
hdc1080.h:9
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:144
component.h
i2c.h
esphome::hdc1080
Definition
hdc1080.cpp:5
sensor.h
temperature
uint16_t temperature
Definition
sun_gtil2.cpp:12
Generated by
1.12.0