From 2162936b4038772ca8315ad33b5befe4594fd169 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 7 Dec 2020 17:43:40 +0000 Subject: [PATCH] Enable ESP32 DMA controlled TFT_CS ESP32 DMA will hold TFT_CS low automatically. STM32 will not do this and requires bracketing DMA transfers with startWrite and endWrite as in examples. --- Processors/TFT_eSPI_ESP32.c | 2 +- TFT_eSPI.h | 2 +- library.json | 2 +- library.properties | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Processors/TFT_eSPI_ESP32.c b/Processors/TFT_eSPI_ESP32.c index ed28d1a..3df895c 100644 --- a/Processors/TFT_eSPI_ESP32.c +++ b/Processors/TFT_eSPI_ESP32.c @@ -690,7 +690,7 @@ bool TFT_eSPI::initDMA(void) .cs_ena_posttrans = 0, .clock_speed_hz = SPI_FREQUENCY, .input_delay_ns = 0, - .spics_io_num = -1, //TFT_CS, + .spics_io_num = TFT_CS, .flags = SPI_DEVICE_NO_DUMMY, //0, .queue_size = 1, .pre_cb = 0, //dc_callback, //Callback to handle D/C line diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 1556aa6..4234199 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -16,7 +16,7 @@ #ifndef _TFT_eSPIH_ #define _TFT_eSPIH_ -#define TFT_ESPI_VERSION "2.3.51" +#define TFT_ESPI_VERSION "2.3.52" // Bit level feature flags // Bit 0 set: viewport capability diff --git a/library.json b/library.json index da10acd..e6d8ad6 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "2.3.51", + "version": "2.3.52", "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 b3f0209..69f7bd0 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=2.3.51 +version=2.3.52 author=Bodmer maintainer=Bodmer sentence=TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32