ESPHome
2026.5.1
Loading...
Searching...
No Matches
esphome
components
tlc5971
output
tlc5971_output.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/helpers.h
"
4
5
#include "
esphome/components/output/float_output.h
"
6
7
#include "
../tlc5971.h
"
8
9
namespace
esphome::tlc5971
{
10
11
class
TLC5971Channel
:
public
output::FloatOutput
,
public
Parented
<TLC5971> {
12
public
:
13
void
set_channel
(uint16_t channel) { this->
channel_
= channel; }
14
15
protected
:
16
void
write_state
(
float
state
)
override
;
17
uint16_t
channel_
;
18
};
19
20
}
// namespace esphome::tlc5971
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::output::FloatOutput
Base class for all output components that can output a variable level, like PWM.
Definition
float_output.h:38
esphome::tlc5971::TLC5971Channel
Definition
tlc5971_output.h:11
esphome::tlc5971::TLC5971Channel::channel_
uint16_t channel_
Definition
tlc5971_output.h:17
esphome::tlc5971::TLC5971Channel::set_channel
void set_channel(uint16_t channel)
Definition
tlc5971_output.h:13
esphome::tlc5971::TLC5971Channel::write_state
void write_state(float state) override
Definition
tlc5971_output.cpp:5
state
bool state
Definition
fan.h:2
float_output.h
helpers.h
esphome::tlc5971
Definition
tlc5971_output.cpp:3
tlc5971.h
Generated by
1.12.0