ESPHome 2025.12.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
18
20 public:
21 void setup() override;
22 void dump_config() override;
23 float get_setup_priority() const override { return setup_priority::DATA; }
24 void set_model(GP8403Model model) { this->model_ = model; }
25 void set_voltage(gp8403::GP8403Voltage voltage) { this->voltage_ = voltage; }
26
27 void write_state(float state, uint8_t channel);
28
29 protected:
32};
33
34} // namespace gp8403
35} // namespace esphome
void set_voltage(gp8403::GP8403Voltage voltage)
Definition gp8403.h:25
float get_setup_priority() const override
Definition gp8403.h:23
void write_state(float state, uint8_t channel)
Definition gp8403.cpp:34
void set_model(GP8403Model model)
Definition gp8403.h:24
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
bool state
Definition fan.h:0
@ 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:59
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7