ESPHome  2024.10.2
tlc5947_output.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "esphome/core/helpers.h"
4 
6 
7 #include "../tlc5947.h"
8 
9 namespace esphome {
10 namespace tlc5947 {
11 
12 class TLC5947Channel : public output::FloatOutput, public Parented<TLC5947> {
13  public:
14  void set_channel(uint8_t channel) { this->channel_ = channel; }
15 
16  protected:
17  void write_state(float state) override;
18  uint8_t channel_;
19 };
20 
21 } // namespace tlc5947
22 } // namespace esphome
Base class for all output components that can output a variable level, like PWM.
Definition: float_output.h:31
void set_channel(uint8_t channel)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void write_state(float state) override
Helper class to easily give an object a parent of type T.
Definition: helpers.h:521
bool state
Definition: fan.h:34