mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 04:48:27 +02:00
Rework tlc5947 to remove AUTO_LOAD (#6503)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include "tlc5947_output.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace tlc5947 {
|
||||
|
||||
void TLC5947Channel::write_state(float state) {
|
||||
auto amount = static_cast<uint16_t>(state * 0xfff);
|
||||
this->parent_->set_channel_value(this->channel_, amount);
|
||||
}
|
||||
|
||||
} // namespace tlc5947
|
||||
} // namespace esphome
|
||||
Reference in New Issue
Block a user