Skip to content

Commit

Permalink
Fix #1046
Browse files Browse the repository at this point in the history
ESP32 DMA did not work if MISO pin is not defined in setup file (affected TTGO T-Display setup 21)
  • Loading branch information
Bodmer committed Mar 13, 2021
1 parent c47d6e2 commit cd025db
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
12 changes: 2 additions & 10 deletions Processors/TFT_eSPI_ESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,7 @@
#ifdef USE_HSPI_PORT

#ifndef TFT_MISO
#define TFT_MISO 12
#endif
#if (TFT_MISO == -1)
#undef TFT_MISO
#define TFT_MISO 12
#define TFT_MISO -1
#endif

#ifndef TFT_MOSI
Expand All @@ -243,11 +239,7 @@
#else // VSPI port

#ifndef TFT_MISO
#define TFT_MISO 19
#endif
#if (TFT_MISO == -1)
#undef TFT_MISO
#define TFT_MISO 19
#define TFT_MISO -1
#endif

#ifndef TFT_MOSI
Expand Down
2 changes: 1 addition & 1 deletion TFT_eSPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_
#define _TFT_eSPIH_

#define TFT_ESPI_VERSION "2.3.60"
#define TFT_ESPI_VERSION "2.3.61"

// Bit level feature flags
// Bit 0 set: viewport capability
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "TFT_eSPI",
"version": "2.3.60",
"keywords": "Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789, RM68140",
"version": "2.3.61",
"keywords": "Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, RM68140, SSD1963, ILI9225, HX8357D",
"description": "A TFT and ePaper SPI graphics library with optimisation for ESP8266, ESP32 and STM32",
"repository":
{
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=TFT_eSPI
version=2.3.60
version=2.3.61
author=Bodmer
maintainer=Bodmer
sentence=TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32
Expand Down

0 comments on commit cd025db

Please sign in to comment.