ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
gp8403.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace gp8403 {
8
13
14class GP8403 : public Component, public i2c::I2CDevice {
15 public:
16 void setup() override;
17 void dump_config() override;
18
19 void set_voltage(gp8403::GP8403Voltage voltage) { this->voltage_ = voltage; }
20
21 protected:
23};
24
25} // namespace gp8403
26} // namespace esphome
void dump_config() override
Definition gp8403.cpp:14
GP8403Voltage voltage_
Definition gp8403.h:22
void set_voltage(gp8403::GP8403Voltage voltage)
Definition gp8403.h:19
void setup() override
Definition gp8403.cpp:12
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
@ GP8403_VOLTAGE_5V
Definition gp8403.h:10
@ GP8403_VOLTAGE_10V
Definition gp8403.h:11
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7