ESPHome
2025.5.0
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
{
4
namespace
tlc5947 {
5
6
void
TLC5947Channel::write_state
(
float
state
) {
7
auto
amount =
static_cast<
uint16_t
>
(
state
* 0xfff);
8
this->
parent_
->set_channel_value(this->
channel_
, amount);
9
}
10
11
}
// namespace tlc5947
12
}
// namespace esphome
esphome::Parented< TLC5947 >::parent_
TLC5947 * parent_
Definition
helpers.h:549
esphome::tlc5947::TLC5947Channel::channel_
uint8_t channel_
Definition
tlc5947_output.h:18
esphome::tlc5947::TLC5947Channel::write_state
void write_state(float state) override
Definition
tlc5947_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
tlc5947_output.h
Generated by
1.12.0