ESPHome  2024.6.1
Go to the documentation of this file.
1 #pragma once
7 namespace esphome {
8 namespace hdc1080 {
11  public:
13  void set_humidity(sensor::Sensor *humidity) { humidity_ = humidity; }
16  void setup() override;
17  void dump_config() override;
19  void update() override;
21  float get_setup_priority() const override;
23  protected:
26 };
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
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
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