mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 08:41:59 +00:00
[st7735] Combine log statements to reduce loop blocking (#12977)
This commit is contained in:
@@ -373,15 +373,18 @@ void ST7735::display_init_(const uint8_t *addr) {
|
||||
|
||||
void ST7735::dump_config() {
|
||||
LOG_DISPLAY("", "ST7735", this);
|
||||
ESP_LOGCONFIG(TAG, " Model: %s", this->model_str_());
|
||||
LOG_PIN(" CS Pin: ", this->cs_);
|
||||
LOG_PIN(" DC Pin: ", this->dc_pin_);
|
||||
LOG_PIN(" Reset Pin: ", this->reset_pin_);
|
||||
ESP_LOGD(TAG, " Buffer Size: %zu", this->get_buffer_length());
|
||||
ESP_LOGD(TAG, " Height: %d", this->height_);
|
||||
ESP_LOGD(TAG, " Width: %d", this->width_);
|
||||
ESP_LOGD(TAG, " ColStart: %d", this->colstart_);
|
||||
ESP_LOGD(TAG, " RowStart: %d", this->rowstart_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
" Model: %s\n"
|
||||
" Buffer Size: %zu\n"
|
||||
" Height: %d\n"
|
||||
" Width: %d\n"
|
||||
" ColStart: %d\n"
|
||||
" RowStart: %d",
|
||||
this->model_str_(), this->get_buffer_length(), this->height_, this->width_, this->colstart_,
|
||||
this->rowstart_);
|
||||
LOG_UPDATE_INTERVAL(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user