ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
tmp117.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::tmp117 {
8
10 public:
11 void setup() override;
12 void dump_config() override;
13 void update() override;
14 void set_config(uint16_t config) { config_ = config; };
15
16 protected:
17 bool read_data_(int16_t *data);
18 bool read_config_(uint16_t *config);
19 bool write_config_(uint16_t config);
20
21 uint16_t config_;
22};
23
24} // namespace esphome::tmp117
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 set_config(uint16_t config)
Definition tmp117.h:14
bool write_config_(uint16_t config)
Definition tmp117.cpp:63
bool read_config_(uint16_t *config)
Definition tmp117.cpp:55
bool read_data_(int16_t *data)
Definition tmp117.cpp:47