7 static const char *
const TAG =
"tlc5971";
17 ESP_LOGCONFIG(TAG,
"Done setting up TLC5971 output component.");
20 ESP_LOGCONFIG(TAG,
"TLC5971:");
23 ESP_LOGCONFIG(TAG,
" Number of chips: %u", this->
num_chips_);
55 for (int8_t c = 11; c >= 0; c--) {
66 uint8_t startbit = 0x80;
68 bool towrite, lastmosi = !(send & startbit);
69 uint8_t bitdelay_us = (1000000 / 1000000) / 2;
71 for (uint8_t b = startbit; b != 0; b = b >> 1) {
77 if ((lastmosi != towrite)) {
virtual void digital_write(bool value)=0
const uint8_t N_CHANNELS_PER_CHIP
void transfer_(uint8_t send)
std::vector< uint16_t > pwm_amounts_
void dump_config() override
Implementation of SPI Controller mode.
void IRAM_ATTR HOT delayMicroseconds(uint32_t us)
void set_channel_value(uint16_t channel, uint16_t value)
void loop() override
Send new values if they were updated.