ESPHome  2024.12.2
tc74.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace 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
void read_temperature_()
Internal method to read the temperature from the component after it has been scheduled.
Definition: tc74.cpp:38
This class simplifies creating components that periodically check a state.
Definition: component.h:283
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
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
void update() override
Update the sensor value (temperature).
Definition: tc74.cpp:27