ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
gp8403.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::gp8403 {
7
8enum GP8403Voltage : uint8_t {
11};
12
13enum GP8403Model : uint8_t {
16};
17
19 public:
20 void setup() override;
21 void dump_config() override;
22 void set_model(GP8403Model model) { this->model_ = model; }
23 void set_voltage(gp8403::GP8403Voltage voltage) { this->voltage_ = voltage; }
24
25 void write_state(float state, uint8_t channel);
26
27 protected:
30};
31
32} // namespace esphome::gp8403
void set_voltage(gp8403::GP8403Voltage voltage)
Definition gp8403.h:23
void write_state(float state, uint8_t channel)
Definition gp8403.cpp:33
void set_model(GP8403Model model)
Definition gp8403.h:22
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:9
@ GP8403_VOLTAGE_10V
Definition gp8403.h:10