#pragma once #include "esphome/core/helpers.h" #include "esphome/components/output/float_output.h" #include "../tlc5947.h" namespace esphome { namespace tlc5947 { class TLC5947Channel : public output::FloatOutput, public Parented { public: void set_channel(uint8_t channel) { this->channel_ = channel; } protected: void write_state(float state) override; uint8_t channel_; }; } // namespace tlc5947 } // namespace esphome