diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 46557cc..b3b0cc2 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -1071,7 +1071,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0) #if defined(TFT_PARALLEL_8_BIT) || defined(RP2040_PIO_INTERFACE) - CS_L; + if (!inTransaction) CS_L; readAddrWindow(x0, y0, 1, 1); @@ -1091,7 +1091,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0) // Read window pixel 24 bit RGB values and fill in LS bits uint16_t rgb = ((readByte() & 0xF8) << 8) | ((readByte() & 0xFC) << 3) | (readByte() >> 3); - CS_H; + if (!inTransaction) CS_H; // Set masked pins D0- D7 to output busDir(dir_mask, OUTPUT); @@ -1103,7 +1103,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0) // Fetch the 16 bit BRG pixel uint16_t bgr = (readByte() << 8) | readByte(); - CS_H; + if (!inTransaction) CS_H; // Set masked pins D0- D7 to output busDir(dir_mask, OUTPUT); diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 43a4551..efc68e9 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.77" +#define TFT_ESPI_VERSION "2.4.78" // Bit level feature flags // Bit 0 set: viewport capability diff --git a/library.json b/library.json index 0e6b964..1258c52 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "2.4.77", + "version": "2.4.78", "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 e46281d..77d94e9 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=2.4.77 +version=2.4.78 author=Bodmer maintainer=Bodmer sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32