mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2024-09-21 10:27:11 +00:00
Fix #1578
This commit is contained in:
parent
0daee5d502
commit
420165904c
14
TFT_eSPI.cpp
14
TFT_eSPI.cpp
@ -549,9 +549,9 @@ void TFT_eSPI::init(uint8_t tc)
|
||||
#else
|
||||
#if !defined(TFT_PARALLEL_8_BIT) && !defined(RP2040_PIO_INTERFACE)
|
||||
#if defined (TFT_MOSI) && !defined (TFT_SPI_OVERLAP) && !defined(ARDUINO_ARCH_RP2040) && !defined (ARDUINO_ARCH_MBED)
|
||||
spi.begin(TFT_SCLK, TFT_MISO, TFT_MOSI, -1);
|
||||
spi.begin(TFT_SCLK, TFT_MISO, TFT_MOSI, -1); // This will set MISO to input
|
||||
#else
|
||||
spi.begin();
|
||||
spi.begin(); // This will set MISO to input
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
@ -562,8 +562,8 @@ void TFT_eSPI::init(uint8_t tc)
|
||||
INIT_TFT_DATA_BUS;
|
||||
|
||||
|
||||
#if defined (TFT_CS) && defined (ESP8266)
|
||||
// Set to output once again in case ESP8266 D6 (MISO) is used for CS
|
||||
#if defined (TFT_CS)
|
||||
// Set to output once again in case MISO is used for CS
|
||||
pinMode(TFT_CS, OUTPUT);
|
||||
digitalWrite(TFT_CS, HIGH); // Chip select high (inactive)
|
||||
#elif defined (ESP8266) && !defined (TFT_PARALLEL_8_BIT) && !defined (RP2040_PIO_SPI)
|
||||
@ -571,8 +571,8 @@ void TFT_eSPI::init(uint8_t tc)
|
||||
#endif
|
||||
|
||||
|
||||
// Set to output once again in case ESP8266 D6 (MISO) is used for DC
|
||||
#if defined (TFT_DC) && defined (ESP8266)
|
||||
// Set to output once again in case MISO is used for DC
|
||||
#if defined (TFT_DC)
|
||||
pinMode(TFT_DC, OUTPUT);
|
||||
digitalWrite(TFT_DC, HIGH); // Data/Command high = data mode
|
||||
#endif
|
||||
@ -583,6 +583,8 @@ void TFT_eSPI::init(uint8_t tc)
|
||||
|
||||
// Toggle RST low to reset
|
||||
#ifdef TFT_RST
|
||||
// Set to output once again in case MISO is used for TFT_RST
|
||||
pinMode(TFT_RST, OUTPUT);
|
||||
if (TFT_RST >= 0) {
|
||||
digitalWrite(TFT_RST, HIGH);
|
||||
delay(5);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "TFT_eSPI",
|
||||
"version": "2.4.25",
|
||||
"version": "2.4.26",
|
||||
"keywords": "Arduino, tft, ePaper, display, Pico, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, RM68140, SSD1351, SSD1963, ILI9225, HX8357D",
|
||||
"description": "A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, ESP8266, ESP32 and STM32",
|
||||
"repository":
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=TFT_eSPI
|
||||
version=2.4.25
|
||||
version=2.4.26
|
||||
author=Bodmer
|
||||
maintainer=Bodmer
|
||||
sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32
|
||||
|
Loading…
Reference in New Issue
Block a user