From ef89249019d1b8ade991699fcfd9317eb6946586 Mon Sep 17 00:00:00 2001 From: SenexCrenshaw <35600301+SenexCrenshaw@users.noreply.github.com> Date: Sat, 13 Feb 2021 03:34:59 -0500 Subject: [PATCH] Fixed ST7735 transfer_byte to write_byte without `miso` (#1529) --- esphome/components/st7735/st7735.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/st7735/st7735.cpp b/esphome/components/st7735/st7735.cpp index 2a3d8fc903..5cd79da2cb 100644 --- a/esphome/components/st7735/st7735.cpp +++ b/esphome/components/st7735/st7735.cpp @@ -407,7 +407,7 @@ void HOT ST7735::senddata_(const uint8_t *data_bytes, uint8_t num_data_bytes) { this->cs_->digital_write(false); this->enable(); for (uint8_t i = 0; i < num_data_bytes; i++) { - this->transfer_byte(pgm_read_byte(data_bytes++)); // write byte - SPI library + this->write_byte(pgm_read_byte(data_bytes++)); // write byte - SPI library } this->cs_->digital_write(true); this->disable();