ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
mlx90614.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::mlx90614 {
8
10 public:
11 void setup() override;
12 void dump_config() override;
13 void update() override;
14
15 void set_ambient_sensor(sensor::Sensor *ambient_sensor) { ambient_sensor_ = ambient_sensor; }
16 void set_object_sensor(sensor::Sensor *object_sensor) { object_sensor_ = object_sensor; }
17
18 void set_emissivity(float emissivity) { emissivity_ = emissivity; }
19
20 protected:
21 bool write_emissivity_();
22
23 bool write_bytes_(uint8_t reg, uint16_t data);
24
27
28 float emissivity_{NAN};
29};
30} // namespace esphome::mlx90614
This class simplifies creating components that periodically check a state.
Definition component.h:585
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition i2c.h:152
void set_emissivity(float emissivity)
Definition mlx90614.h:18
void set_object_sensor(sensor::Sensor *object_sensor)
Definition mlx90614.h:16
bool write_bytes_(uint8_t reg, uint16_t data)
Definition mlx90614.cpp:52
void set_ambient_sensor(sensor::Sensor *ambient_sensor)
Definition mlx90614.h:15
Base-class for all sensors.
Definition sensor.h:47