From d94408bdaa8afeb671347df5e566987420eda39e Mon Sep 17 00:00:00 2001 From: Bodmer Date: Tue, 19 Jul 2022 12:29:41 +0100 Subject: [PATCH] Fix #1758 As proposed in #1914 --- TFT_eSPI.cpp | 1 + TFT_eSPI.h | 2 +- library.json | 2 +- library.properties | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 754fadc3..87356c2e 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -676,6 +676,7 @@ void TFT_eSPI::init(uint8_t tc) pinMode(TFT_RST, OUTPUT); #endif if (TFT_RST >= 0) { + writecommand(0x00); // Put SPI bus in known state for TFT with CS tied low digitalWrite(TFT_RST, HIGH); delay(5); digitalWrite(TFT_RST, LOW); diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 4fbf1f87..d719364d 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -16,7 +16,7 @@ #ifndef _TFT_eSPIH_ #define _TFT_eSPIH_ -#define TFT_ESPI_VERSION "2.4.71" +#define TFT_ESPI_VERSION "2.4.72" // Bit level feature flags // Bit 0 set: viewport capability diff --git a/library.json b/library.json index 7c6df453..91a9a73a 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "2.4.71", + "version": "2.4.72", "keywords": "Arduino, tft, display, ttgo, LilyPi, WT32-SC01, ePaper, display, Pico, RP2040 Nano Connect, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, ST7796, RM68140, SSD1351, SSD1963, ILI9225, HX8357D, GC9A01, R61581", "description": "A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, RP2040, ESP8266, ESP32 and STM32", "repository": diff --git a/library.properties b/library.properties index 4d8855c1..558fdb01 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=2.4.71 +version=2.4.72 author=Bodmer maintainer=Bodmer sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32