ESPHome  2024.11.0
tmp117.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace tmp117 {
9 
11  public:
12  void setup() override;
13  void dump_config() override;
14  float get_setup_priority() const override;
15  void update() override;
16  void set_config(uint16_t config) { config_ = config; };
17 
18  protected:
19  bool read_data_(int16_t *data);
20  bool read_config_(uint16_t *config);
21  bool write_config_(uint16_t config);
22 
23  uint16_t config_;
24 };
25 
26 } // namespace tmp117
27 } // namespace esphome
float get_setup_priority() const override
Definition: tmp117.cpp:50
This class simplifies creating components that periodically check a state.
Definition: component.h:283
void set_config(uint16_t config)
Definition: tmp117.h:16
bool write_config_(uint16_t config)
Definition: tmp117.cpp:67
void dump_config() override
Definition: tmp117.cpp:42
bool read_config_(uint16_t *config)
Definition: tmp117.cpp:59
bool read_data_(int16_t *data)
Definition: tmp117.cpp:51
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