mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-27 00:17:22 +02:00
13 lines
284 B
C++
13 lines
284 B
C++
#include "tlc5971_output.h"
|
|
|
|
namespace esphome {
|
|
namespace tlc5971 {
|
|
|
|
void TLC5971Channel::write_state(float state) {
|
|
auto amount = static_cast<uint16_t>(state * 0xffff);
|
|
this->parent_->set_channel_value(this->channel_, amount);
|
|
}
|
|
|
|
} // namespace tlc5971
|
|
} // namespace esphome
|