Implemented support for the TLC5971 as an output component (#6494)

This commit is contained in:
IJssel
2024-04-09 22:03:18 +02:00
committed by GitHub
parent 857b8ef363
commit 3adfed3675
15 changed files with 303 additions and 0 deletions
@@ -0,0 +1,12 @@
#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