ESPHome 2026.2.1
Loading...
Searching...
No Matches
mlx90614.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace mlx90614 {
9
11 public:
12 void setup() override;
13 void dump_config() override;
14 void update() override;
15
16 void set_ambient_sensor(sensor::Sensor *ambient_sensor) { ambient_sensor_ = ambient_sensor; }
17 void set_object_sensor(sensor::Sensor *object_sensor) { object_sensor_ = object_sensor; }
18
19 void set_emissivity(float emissivity) { emissivity_ = emissivity; }
20
21 protected:
22 bool write_emissivity_();
23
24 bool write_bytes_(uint8_t reg, uint16_t data);
25
28
29 float emissivity_{NAN};
30};
31} // namespace mlx90614
32} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:512
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition i2c.h:153
void set_emissivity(float emissivity)
Definition mlx90614.h:19
void set_object_sensor(sensor::Sensor *object_sensor)
Definition mlx90614.h:17
bool write_bytes_(uint8_t reg, uint16_t data)
Definition mlx90614.cpp:53
void set_ambient_sensor(sensor::Sensor *ambient_sensor)
Definition mlx90614.h:16
Base-class for all sensors.
Definition sensor.h:43
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7