forked from Bodmer/TFT_eSPI
Fix RPI display issue #892
Prevent 18 bit display serial driver being invoked for RPi display
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -116,9 +116,11 @@
|
||||
#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)
|
||||
#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 !
|
||||
#if defined (ILI9341_DRIVER)
|
||||
|
@@ -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":
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user