ESPHome 2026.2.1
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 protected:
20 void read_temperature_();
21
22 bool data_ready_ = false;
23};
24
25} // namespace tc74
26} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:512
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:43
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition tc74.cpp:37
void update() override
Update the sensor value (temperature).
Definition tc74.cpp:26
void setup() override
Setup the sensor and check connection.
Definition tc74.cpp:17
void dump_config() override
Definition tc74.cpp:28
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7