From a8cd5c5d91d3e4d1d5a77ae7ce4dea97ca507266 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Thu, 6 Aug 2020 12:51:10 +0100 Subject: [PATCH] Correct TFT_eFEX issue 24 --- TFT_eSPI.cpp | 12 ++++++------ TFT_eSPI.h | 2 +- library.json | 2 +- library.properties | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index e3fb4c1..9fb7daa 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -2626,18 +2626,18 @@ void TFT_eSPI::setWindow(int32_t x0, int32_t y0, int32_t x1, int32_t y1) DC_D; tft_Write_32C(y0, y1); #else // No need to send x if it has not changed (speeds things up) - if (addr_col != (x0<<16 | x1)) { + //if (addr_col != (x0<<16 | x1)) { DC_C; tft_Write_8(TFT_CASET); DC_D; tft_Write_32C(x0, x1); - addr_col = (x0<<16 | x1); - } + // addr_col = (x0<<16 | x1); + //} // No need to send y if it has not changed (speeds things up) - if (addr_row != (y0<<16 | y1)) { + //if (addr_row != (y0<<16 | y1)) { DC_C; tft_Write_8(TFT_PASET); DC_D; tft_Write_32C(y0, y1); - addr_row = (y0<<16 | y1); - } + // addr_row = (y0<<16 | y1); + //} #endif DC_C; tft_Write_8(TFT_RAMWR); diff --git a/TFT_eSPI.h b/TFT_eSPI.h index f5371e0..896c814 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -16,7 +16,7 @@ #ifndef _TFT_eSPIH_ #define _TFT_eSPIH_ -#define TFT_ESPI_VERSION "2.2.16" +#define TFT_ESPI_VERSION "2.2.17" /*************************************************************************************** ** Section 1: Load required header files diff --git a/library.json b/library.json index 7733bb7..6a2b563 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "2.2.16", + "version": "2.2.17", "keywords": "Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789, RM68140", "description": "A TFT and ePaper SPI graphics library with optimisation for ESP8266, ESP32 and STM32", "repository": diff --git a/library.properties b/library.properties index 736d8d5..70d3782 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=2.2.16 +version=2.2.17 author=Bodmer maintainer=Bodmer sentence=TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32