Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TFT_eSPI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
TFT_eSPI
Commits
d6e573c2
Commit
d6e573c2
authored
Nov 25, 2020
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SPI ILI9481
ILI9481 with 8 bit parallel worked OK but SPI needs an 18 bit colour interface.
parent
abe5a442
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
14 deletions
+22
-14
Processors/TFT_eSPI_ESP32.c
Processors/TFT_eSPI_ESP32.c
+2
-2
Processors/TFT_eSPI_ESP32.h
Processors/TFT_eSPI_ESP32.h
+2
-2
Processors/TFT_eSPI_ESP8266.c
Processors/TFT_eSPI_ESP8266.c
+1
-1
Processors/TFT_eSPI_ESP8266.h
Processors/TFT_eSPI_ESP8266.h
+1
-1
Processors/TFT_eSPI_Generic.c
Processors/TFT_eSPI_Generic.c
+1
-1
Processors/TFT_eSPI_Generic.h
Processors/TFT_eSPI_Generic.h
+1
-1
Processors/TFT_eSPI_STM32.c
Processors/TFT_eSPI_STM32.c
+1
-1
Processors/TFT_eSPI_STM32.h
Processors/TFT_eSPI_STM32.h
+1
-1
TFT_Drivers/ILI9481_Init.h
TFT_Drivers/ILI9481_Init.h
+9
-1
TFT_eSPI.h
TFT_eSPI.h
+1
-1
library.json
library.json
+1
-1
library.properties
library.properties
+1
-1
No files found.
Processors/TFT_eSPI_ESP32.c
View file @
d6e573c2
...
...
@@ -173,7 +173,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len)
}
////////////////////////////////////////////////////////////////////////////////////////
#elif !defined (ILI9488_DRIVER) && !defined (TFT_PARALLEL_8_BIT) // Most displays
#elif !defined (ILI948
1_DRIVER) && !defined (ILI948
8_DRIVER) && !defined (TFT_PARALLEL_8_BIT) // Most displays
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
@@ -349,7 +349,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
}
////////////////////////////////////////////////////////////////////////////////////////
#elif
defined (ILI9488_DRIVER) && !defined (TFT_PARALLEL_8_BIT)// Now code for ILI948
8
#elif
(defined (ILI9481_DRIVER) || defined (ILI9488_DRIVER)) && !defined (TFT_PARALLEL_8_BIT)// Now code for ILI9481/
8
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_ESP32.h
View file @
d6e573c2
...
...
@@ -52,7 +52,7 @@
#endif
// Code to check if DMA is busy, used by SPI bus transaction transaction and endWrite functions
#if !defined(TFT_PARALLEL_8_BIT) && !defined(ILI948
8_DRIVER) && !defined (RPI_DISPLAY_TYPE
)
#if !defined(TFT_PARALLEL_8_BIT) && !defined(ILI948
1_DRIVER) && !defined(ILI9488_DRIVER) && !defined (RPI_DISPLAY_TYPE) || (defined (RPI_DISPLAY_TYPE) && defined (ST7796_DRIVER)
)
#define ESP32_DMA
// Code to check if DMA is busy, used by SPI DMA + transaction + endWrite functions
#define DMA_BUSY_CHECK dmaWait()
...
...
@@ -351,7 +351,7 @@
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to an ILI9488 TFT
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (ILI948
8_DRIVER)
// 16 bit colour converted to 3 bytes for 18 bit RGB
#elif defined (ILI948
1_DRIVER) || defined (ILI9488_DRIVER)
// 16 bit colour converted to 3 bytes for 18 bit RGB
// Write 8 bits to TFT
#define tft_Write_8(C) spi.transfer(C)
...
...
Processors/TFT_eSPI_ESP8266.c
View file @
d6e573c2
...
...
@@ -109,7 +109,7 @@ void TFT_eSPI::pushSwapBytePixels(const void* data_in, uint32_t len){
}
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (ILI9488_DRIVER)
#elif defined (ILI948
1_DRIVER) || defined (ILI948
8_DRIVER)
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_ESP8266.h
View file @
d6e573c2
...
...
@@ -117,7 +117,7 @@
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to an ILI9488 TFT
////////////////////////////////////////////////////////////////////////////////////////
#if defined (ILI9488_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
#if defined (ILI948
1_DRIVER) || defined (ILI948
8_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
// Write 8 bits to TFT
#define tft_Write_8(C) spi.transfer(C)
...
...
Processors/TFT_eSPI_Generic.c
View file @
d6e573c2
...
...
@@ -168,7 +168,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len)
}
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (ILI9488_DRIVER) // For 24 bit SPI colour TFT
#elif defined (ILI948
1_DRIVER) || defined (ILI948
8_DRIVER) // For 24 bit SPI colour TFT
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_Generic.h
View file @
d6e573c2
...
...
@@ -94,7 +94,7 @@
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to an ILI9488 TFT
////////////////////////////////////////////////////////////////////////////////////////
#if defined (ILI9488_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
#if defined (ILI948
1_DRIVER) || defined (ILI948
8_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
// Write 8 bits to TFT
#define tft_Write_8(C) spi.transfer(C)
...
...
Processors/TFT_eSPI_STM32.c
View file @
d6e573c2
...
...
@@ -260,7 +260,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len)
}
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (ILI9488_DRIVER) // For 24 bit colour TFT ############# UNTESTED ###################
#elif defined (ILI948
1_DRIVER) || defined (ILI948
8_DRIVER) // For 24 bit colour TFT ############# UNTESTED ###################
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_STM32.h
View file @
d6e573c2
...
...
@@ -987,7 +987,7 @@
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to a SPI ILI9488 TFT
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (ILI9488_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
#elif defined (ILI948
1_DRIVER) || defined (ILI948
8_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
// Write 8 bits to TFT
#define tft_Write_8(C) \
...
...
TFT_Drivers/ILI9481_Init.h
View file @
d6e573c2
...
...
@@ -53,7 +53,15 @@
writedata
(
0x0A
);
writecommand
(
0x3A
);
writedata
(
0x55
);
#ifdef TFT_PARALLEL_8_BIT
writedata
(
0x55
);
// 16 bit colour interface
#else
writedata
(
0x66
);
// 18 bit colour interface
#endif
#ifndef TFT_PARALLEL_8_BIT
writecommand
(
TFT_INVON
);
#endif
writecommand
(
TFT_CASET
);
writedata
(
0x00
);
...
...
TFT_eSPI.h
View file @
d6e573c2
...
...
@@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_
#define _TFT_eSPIH_
#define TFT_ESPI_VERSION "2.3.4"
#define TFT_ESPI_VERSION "2.3.4
1
"
// Bit level feature flags
// Bit 0 set: viewport capability
...
...
library.json
View file @
d6e573c2
{
"name"
:
"TFT_eSPI"
,
"version"
:
"2.3.4"
,
"version"
:
"2.3.4
1
"
,
"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"
:
...
...
library.properties
View file @
d6e573c2
name
=
TFT_eSPI
version
=
2.3.4
version
=
2.3.4
1
author
=
Bodmer
maintainer
=
Bodmer
sentence
=
TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment