ESPHome 2026.3.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
9enum GP8403Voltage : uint8_t {
12};
13
14enum GP8403Model : uint8_t {
17};
18
20 public:
21 void setup() override;
22 void dump_config() override;
23 void set_model(GP8403Model model) { this->model_ = model; }
24 void set_voltage(gp8403::GP8403Voltage voltage) { this->voltage_ = voltage; }
25
26 void write_state(float state, uint8_t channel);
27
28 protected:
31};
32
33} // namespace gp8403
34} // namespace esphome
void set_voltage(gp8403::GP8403Voltage voltage)
Definition gp8403.h:24
void write_state(float state, uint8_t channel)
Definition gp8403.cpp:34
void set_model(GP8403Model model)
Definition gp8403.h:23
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
bool state
Definition fan.h:2
@ 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