ESPHome 2025.5.0
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 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
void dump_config() override
Definition gp8403.cpp:14
float get_setup_priority() const override
Definition gp8403.h:18
GP8403Voltage voltage_
Definition gp8403.h:23
void set_voltage(gp8403::GP8403Voltage voltage)
Definition gp8403.h:20
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
const float DATA
For components that import data from directly connected sensors like DHT.
Definition component.cpp:19
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7