ESPHome  2024.11.0
gp8403.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace gp8403 {
8 
12 };
13 
14 class GP8403 : public Component, public i2c::I2CDevice {
15  public:
16  void setup() override;
17  void dump_config() override;
18  float get_setup_priority() const override { return setup_priority::DATA; }
19 
20  void set_voltage(gp8403::GP8403Voltage voltage) { this->voltage_ = voltage; }
21 
22  protected:
24 };
25 
26 } // namespace gp8403
27 } // namespace esphome
GP8403Voltage voltage_
Definition: gp8403.h:23
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
void set_voltage(gp8403::GP8403Voltage voltage)
Definition: gp8403.h:20
void setup() override
Definition: gp8403.cpp:12
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
float get_setup_priority() const override
Definition: gp8403.h:18
void dump_config() override
Definition: gp8403.cpp:14
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133