diff --git a/TFT_Drivers/ILI9481_Init.h b/TFT_Drivers/ILI9481_Init.h index 029be02..ae22e92 100644 --- a/TFT_Drivers/ILI9481_Init.h +++ b/TFT_Drivers/ILI9481_Init.h @@ -61,7 +61,7 @@ writedata(0x0A); writecommand(0x3A); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writedata(0x55); // 16 bit colour interface #else writedata(0x66); // 18 bit colour interface @@ -150,7 +150,7 @@ writedata(0x0A); writecommand(0x3A); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writedata(0x55); // 16 bit colour interface #else writedata(0x66); // 18 bit colour interface @@ -239,7 +239,7 @@ writedata(0x0A); writecommand(0x3A); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writedata(0x55); // 16 bit colour interface #else writedata(0x66); // 18 bit colour interface @@ -324,7 +324,7 @@ writedata(0x0A); writecommand(0x3A); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writedata(0x55); // 16 bit colour interface #else writedata(0x66); // 18 bit colour interface @@ -412,7 +412,7 @@ writedata(0x0A); writecommand(0x3A); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writedata(0x55); // 16 bit colour interface #else writedata(0x66); // 18 bit colour interface @@ -524,7 +524,7 @@ writedata(0x0A); writecommand(0x3A); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writedata(0x55); // 16 bit colour interface #else writedata(0x66); // 18 bit colour interface diff --git a/TFT_Drivers/ILI9486_Init.h b/TFT_Drivers/ILI9486_Init.h index a0321b1..dc8fbfc 100644 --- a/TFT_Drivers/ILI9486_Init.h +++ b/TFT_Drivers/ILI9486_Init.h @@ -15,7 +15,7 @@ delay(120); writecommand(0x3A); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writedata(0x55); // 16 bit colour interface #else writedata(0x66); // 18 bit colour interface @@ -64,7 +64,7 @@ writedata(0x20); writedata(0x00); - #ifdef TFT_PARALLEL_8_BIT + #if defined (TFT_PARALLEL_8_BIT) || defined (RPI_DISPLAY_TYPE) writecommand(TFT_INVOFF); #else writecommand(TFT_INVON); diff --git a/TFT_Drivers/ILI9488_Init.h b/TFT_Drivers/ILI9488_Init.h index c3d0b57..a593dd7 100644 --- a/TFT_Drivers/ILI9488_Init.h +++ b/TFT_Drivers/ILI9488_Init.h @@ -58,7 +58,7 @@ writedata(0x48); // MX, BGR 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 #else writedata(0x66); // 18 bit colour for SPI diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 44915aa..13e9025 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.54" +#define TFT_ESPI_VERSION "2.3.55" // Bit level feature flags // Bit 0 set: viewport capability diff --git a/User_Setup_Select.h b/User_Setup_Select.h index c0e3fbf..434b09a 100644 --- a/User_Setup_Select.h +++ b/User_Setup_Select.h @@ -116,8 +116,10 @@ #endif // 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) - #define SPI_18BIT_DRIVER +#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 + #endif #endif // Load the right driver definition - do not tinker here ! diff --git a/library.json b/library.json index e6464b1..3ee82e3 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "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", "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 6d798bb..e66f8ef 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=2.3.54 +version=2.3.55 author=Bodmer maintainer=Bodmer sentence=TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32