ESPHome  2024.12.2
tlc5971_output.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "esphome/core/helpers.h"
4 
6 
7 #include "../tlc5971.h"
8 
9 namespace esphome {
10 namespace tlc5971 {
11 
12 class TLC5971Channel : public output::FloatOutput, public Parented<TLC5971> {
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 tlc5971
22 } // namespace esphome
Base class for all output components that can output a variable level, like PWM.
Definition: float_output.h:31
void write_state(float state) override
void set_channel(uint8_t channel)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Helper class to easily give an object a parent of type T.
Definition: helpers.h:530
bool state
Definition: fan.h:34