1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[tlc5947] Combine log statements to reduce loop blocking (#12921)

This commit is contained in:
J. Nick Koston
2026-01-04 12:57:10 -10:00
committed by GitHub
parent e9cab96cb7
commit 56d1d928f9

View File

@@ -21,12 +21,14 @@ void TLC5947::setup() {
this->pwm_amounts_.resize(this->num_chips_ * N_CHANNELS_PER_CHIP, 0);
}
void TLC5947::dump_config() {
ESP_LOGCONFIG(TAG, "TLC5947:");
ESP_LOGCONFIG(TAG,
"TLC5947:\n"
" Number of chips: %u",
this->num_chips_);
LOG_PIN(" Data Pin: ", this->data_pin_);
LOG_PIN(" Clock Pin: ", this->clock_pin_);
LOG_PIN(" LAT Pin: ", this->lat_pin_);
LOG_PIN(" OE Pin: ", this->outenable_pin_);
ESP_LOGCONFIG(TAG, " Number of chips: %u", this->num_chips_);
}
void TLC5947::loop() {