ESPHome  2024.11.1
max17043.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace max17043 {
9 
11  public:
12  void setup() override;
13  void dump_config() override;
14  float get_setup_priority() const override;
15  void update() override;
16  void sleep_mode();
17 
18  void set_voltage_sensor(sensor::Sensor *voltage_sensor) { voltage_sensor_ = voltage_sensor; }
19  void set_battery_remaining_sensor(sensor::Sensor *battery_remaining_sensor) {
20  battery_remaining_sensor_ = battery_remaining_sensor;
21  }
22 
23  protected:
26 };
27 
28 } // namespace max17043
29 } // namespace esphome
void set_voltage_sensor(sensor::Sensor *voltage_sensor)
Definition: max17043.h:18
This class simplifies creating components that periodically check a state.
Definition: component.h:283
float get_setup_priority() const override
Definition: max17043.cpp:86
void set_battery_remaining_sensor(sensor::Sensor *battery_remaining_sensor)
Definition: max17043.h:19
sensor::Sensor * battery_remaining_sensor_
Definition: max17043.h:25
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
sensor::Sensor * voltage_sensor_
Definition: max17043.h:24
Base-class for all sensors.
Definition: sensor.h:57
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133