ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
gp8403_output.h
Go to the documentation of this file.
1#pragma once
2
5
7
8namespace esphome::gp8403 {
9
10class GP8403Output : public Component, public output::FloatOutput, public Parented<GP8403Component> {
11 public:
12 void dump_config() override;
13 float get_setup_priority() const override { return setup_priority::DATA - 1; }
14 void set_channel(uint8_t channel) { this->channel_ = channel; }
15 void write_state(float state) override;
16
17 protected:
18 uint8_t channel_;
19};
20
21} // namespace esphome::gp8403
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
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:2
constexpr float DATA
For components that import data from directly connected sensors like DHT.
Definition component.h:43