mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-13 16:13:32 +02:00
Implemented support for the TLC5971 as an output component (#6494)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user