mirror of https://github.com/esphome/esphome.git
13 lines
283 B
C++
13 lines
283 B
C++
|
#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
|