ESPHome
2026.5.1
Loading...
Searching...
No Matches
esphome
components
tlc5971
output
tlc5971_output.cpp
Go to the documentation of this file.
1
#include "
tlc5971_output.h
"
2
3
namespace
esphome::tlc5971
{
4
5
void
TLC5971Channel::write_state
(
float
state
) {
6
auto
amount =
static_cast<
uint16_t
>
(
state
* 0xffff);
7
this->
parent_
->set_channel_value(this->
channel_
, amount);
8
}
9
10
}
// namespace esphome::tlc5971
esphome::Parented< TLC5971 >::parent_
TLC5971 * parent_
Definition
helpers.h:1872
esphome::tlc5971::TLC5971Channel::channel_
uint16_t channel_
Definition
tlc5971_output.h:17
esphome::tlc5971::TLC5971Channel::write_state
void write_state(float state) override
Definition
tlc5971_output.cpp:5
state
bool state
Definition
fan.h:2
esphome::tlc5971
Definition
tlc5971_output.cpp:3
tlc5971_output.h
Generated by
1.12.0