ESPHome
2025.7.4
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
{
4
namespace
tlc5971 {
5
6
void
TLC5971Channel::write_state
(
float
state
) {
7
auto
amount =
static_cast<
uint16_t
>
(
state
* 0xffff);
8
this->
parent_
->set_channel_value(this->
channel_
, amount);
9
}
10
11
}
// namespace tlc5971
12
}
// namespace esphome
esphome::Parented< TLC5971 >::parent_
TLC5971 * parent_
Definition
helpers.h:613
esphome::tlc5971::TLC5971Channel::channel_
uint8_t channel_
Definition
tlc5971_output.h:18
esphome::tlc5971::TLC5971Channel::write_state
void write_state(float state) override
Definition
tlc5971_output.cpp:6
state
bool state
Definition
fan.h:0
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
tlc5971_output.h
Generated by
1.12.0