Commit 1c4860de authored by Bodmer's avatar Bodmer

Fix RPI display issue #892

Prevent 18 bit display serial driver being invoked for RPi display
parent 95d1cd89
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
writedata(0x0A); writedata(0x0A);
writecommand(0x3A); writecommand(0x3A);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour interface writedata(0x55); // 16 bit colour interface
#else #else
writedata(0x66); // 18 bit colour interface writedata(0x66); // 18 bit colour interface
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
writedata(0x0A); writedata(0x0A);
writecommand(0x3A); writecommand(0x3A);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour interface writedata(0x55); // 16 bit colour interface
#else #else
writedata(0x66); // 18 bit colour interface writedata(0x66); // 18 bit colour interface
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
writedata(0x0A); writedata(0x0A);
writecommand(0x3A); writecommand(0x3A);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour interface writedata(0x55); // 16 bit colour interface
#else #else
writedata(0x66); // 18 bit colour interface writedata(0x66); // 18 bit colour interface
...@@ -324,7 +324,7 @@ ...@@ -324,7 +324,7 @@
writedata(0x0A); writedata(0x0A);
writecommand(0x3A); writecommand(0x3A);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour interface writedata(0x55); // 16 bit colour interface
#else #else
writedata(0x66); // 18 bit colour interface writedata(0x66); // 18 bit colour interface
...@@ -412,7 +412,7 @@ ...@@ -412,7 +412,7 @@
writedata(0x0A); writedata(0x0A);
writecommand(0x3A); writecommand(0x3A);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour interface writedata(0x55); // 16 bit colour interface
#else #else
writedata(0x66); // 18 bit colour interface writedata(0x66); // 18 bit colour interface
...@@ -524,7 +524,7 @@ ...@@ -524,7 +524,7 @@
writedata(0x0A); writedata(0x0A);
writecommand(0x3A); writecommand(0x3A);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour interface writedata(0x55); // 16 bit colour interface
#else #else
writedata(0x66); // 18 bit colour interface writedata(0x66); // 18 bit colour interface
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
delay(120); delay(120);
writecommand(0x3A); writecommand(0x3A);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour interface writedata(0x55); // 16 bit colour interface
#else #else
writedata(0x66); // 18 bit colour interface writedata(0x66); // 18 bit colour interface
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
writedata(0x20); writedata(0x20);
writedata(0x00); writedata(0x00);
#ifdef TFT_PARALLEL_8_BIT #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writecommand(TFT_INVOFF); writecommand(TFT_INVOFF);
#else #else
writecommand(TFT_INVON); writecommand(TFT_INVON);
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
writedata(0x48); // MX, BGR writedata(0x48); // MX, BGR
writecommand(0x3A); // Pixel Interface Format writecommand(0x3A); // Pixel Interface Format
#if defined (TFT_PARALLEL_8_BIT) #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE)
writedata(0x55); // 16 bit colour for parallel writedata(0x55); // 16 bit colour for parallel
#else #else
writedata(0x66); // 18 bit colour for SPI writedata(0x66); // 18 bit colour for SPI
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_ #ifndef _TFT_eSPIH_
#define _TFT_eSPIH_ #define _TFT_eSPIH_
#define TFT_ESPI_VERSION "2.3.54" #define TFT_ESPI_VERSION "2.3.55"
// Bit level feature flags // Bit level feature flags
// Bit 0 set: viewport capability // Bit 0 set: viewport capability
......
...@@ -116,8 +116,10 @@ ...@@ -116,8 +116,10 @@
#endif #endif
// Invoke 18 bit colour for selected displays // Invoke 18 bit colour for selected displays
#if (defined (ILI9481_DRIVER) || defined (ILI9486_DRIVER) || defined (ILI9488_DRIVER)) && !defined (TFT_PARALLEL_8_BIT) && !defined (ESP32_PARALLEL) #if !defined (RPI_DISPLAY_TYPE) && !defined (TFT_PARALLEL_8_BIT) && !defined (ESP32_PARALLEL)
#if defined (ILI9481_DRIVER) || defined (ILI9486_DRIVER) || defined (ILI9488_DRIVER)
#define SPI_18BIT_DRIVER #define SPI_18BIT_DRIVER
#endif
#endif #endif
// Load the right driver definition - do not tinker here ! // Load the right driver definition - do not tinker here !
......
{ {
"name": "TFT_eSPI", "name": "TFT_eSPI",
"version": "2.3.54", "version": "2.3.55",
"keywords": "Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789, RM68140", "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", "description": "A TFT and ePaper SPI graphics library with optimisation for ESP8266, ESP32 and STM32",
"repository": "repository":
......
name=TFT_eSPI name=TFT_eSPI
version=2.3.54 version=2.3.55
author=Bodmer author=Bodmer
maintainer=Bodmer maintainer=Bodmer
sentence=TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32 sentence=TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment