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.
This commit is contained in:
Bodmer
2020-12-07 17:43:40 +00:00
parent 04b8ae9096
commit 2162936b40
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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":

View File

@@ -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