ESPHome 2025.5.0
Loading...
Searching...
No Matches
tmp117.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace 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
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 set_config(uint16_t config)
Definition tmp117.h:16
bool write_config_(uint16_t config)
Definition tmp117.cpp:67
float get_setup_priority() const override
Definition tmp117.cpp:50
bool read_config_(uint16_t *config)
Definition tmp117.cpp:59
bool read_data_(int16_t *data)
Definition tmp117.cpp:51
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7