ESPHome
2024.12.2
esphome
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::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
tlc5971_output.h
esphome::Parented< TLC5971 >::parent_
TLC5971 * parent_
Definition:
helpers.h:541
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
state
bool state
Definition:
fan.h:34
Generated by
1.8.13