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