ESPHome 2026.5.1
Loading...
Searching...
No Matches
tc74.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::tc74 {
8
10 public:
12 void setup() override;
13 void dump_config() override;
15 void update() override;
16
17 protected:
19 void read_temperature_();
20
21 bool data_ready_ = false;
22};
23
24} // namespace esphome::tc74
This class simplifies creating components that periodically check a state.
Definition component.h:602
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
Base-class for all sensors.
Definition sensor.h:47
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition tc74.cpp:36
void update() override
Update the sensor value (temperature).
Definition tc74.cpp:25
void setup() override
Setup the sensor and check connection.
Definition tc74.cpp:16
void dump_config() override
Definition tc74.cpp:27