ESPHome  2024.11.3
hdc1080.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace hdc1080 {
9 
11  public:
13  void set_humidity(sensor::Sensor *humidity) { humidity_ = humidity; }
14 
16  void setup() override;
17  void dump_config() override;
19  void update() override;
20 
21  float get_setup_priority() const override;
22 
23  protected:
26 };
27 
28 } // namespace hdc1080
29 } // namespace esphome
void update() override
Retrieve the latest sensor values. This operation takes approximately 16ms.
Definition: hdc1080.cpp:40
sensor::Sensor * temperature_
Definition: hdc1080.h:24
sensor::Sensor * humidity_
Definition: hdc1080.h:25
void setup() override
Setup the sensor and check for connection.
Definition: hdc1080.cpp:15
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void set_humidity(sensor::Sensor *humidity)
Definition: hdc1080.h:13
uint16_t temperature
Definition: sun_gtil2.cpp:26
void set_temperature(sensor::Sensor *temperature)
Definition: hdc1080.h:12
float get_setup_priority() const override
Definition: hdc1080.cpp:72
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133