ESPHome 2025.5.2
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
gp8403_output.h
Go to the documentation of this file.
1#pragma once
2
5
7
8namespace esphome {
9namespace gp8403 {
10
11class GP8403Output : public Component, public output::FloatOutput, public Parented<GP8403> {
12 public:
13 void dump_config() override;
14 float get_setup_priority() const override { return setup_priority::DATA - 1; }
15
16 void set_channel(uint8_t channel) { this->channel_ = channel; }
17
18 void write_state(float state) override;
19
20 protected:
21 uint8_t channel_;
22};
23
24} // namespace gp8403
25} // namespace esphome
Helper class to easily give an object a parent of type T.
Definition helpers.h:539
void write_state(float state) override
float get_setup_priority() const override
void set_channel(uint8_t channel)
Base class for all output components that can output a variable level, like PWM.
bool state
Definition fan.h:0
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