ESPHome
2024.11.0
esphome
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
tlc5947_output.h
esphome::Parented< TLC5947 >::parent_
TLC5947 * parent_
Definition:
helpers.h:533
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
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:34
Generated by
1.8.13