ESPHome 2026.3.0-dev
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 void update() override;
15 void set_config(uint16_t config) { config_ = config; };
16
17 protected:
18 bool read_data_(int16_t *data);
19 bool read_config_(uint16_t *config);
20 bool write_config_(uint16_t config);
21
22 uint16_t config_;
23};
24
25} // namespace tmp117
26} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:527
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 set_config(uint16_t config)
Definition tmp117.h:15
bool write_config_(uint16_t config)
Definition tmp117.cpp:65
bool read_config_(uint16_t *config)
Definition tmp117.cpp:57
bool read_data_(int16_t *data)
Definition tmp117.cpp:49
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7