ESPHome 2026.2.0
Loading...
Searching...
No Matches
max44009.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace max44009 {
9
11
14 public:
16
17 void setup() override;
18 void dump_config() override;
19 void update() override;
22 bool set_low_power_mode();
23
24 protected:
26 float read_illuminance_();
27 float convert_to_lux_(uint8_t data_high, uint8_t data_low);
28 uint8_t read_(uint8_t reg);
29 void write_(uint8_t reg, uint8_t value);
30
31 int error_;
33};
34
35} // namespace max44009
36} // namespace esphome
BedjetMode mode
BedJet operating mode.
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
This class implements support for the MAX44009 Illuminance i2c sensor.
Definition max44009.h:13
float read_illuminance_()
Read the illuminance value.
Definition max44009.cpp:66
void write_(uint8_t reg, uint8_t value)
Definition max44009.cpp:130
void set_mode(MAX44009Mode mode)
Definition max44009.cpp:138
float convert_to_lux_(uint8_t data_high, uint8_t data_low)
Definition max44009.cpp:86
Base-class for all sensors.
Definition sensor.h:43
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7