ESPHome 2025.5.0
Loading...
Searching...
No Matches
tc74.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace tc74 {
9
11 public:
13 void setup() override;
14 void dump_config() override;
16 void update() override;
17
18 float get_setup_priority() const override;
19
20 protected:
22 void read_temperature_();
23
24 bool data_ready_ = false;
25};
26
27} // namespace tc74
28} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:301
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
Base-class for all sensors.
Definition sensor.h:57
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition tc74.cpp:38
void update() override
Update the sensor value (temperature).
Definition tc74.cpp:27
void setup() override
Setup the sensor and check connection.
Definition tc74.cpp:17
float get_setup_priority() const override
Definition tc74.cpp:65
void dump_config() override
Definition tc74.cpp:29
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7