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
fd16a606
Commit
fd16a606
authored
Nov 26, 2020
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ILI9486 driver for SPI
parent
0de102f3
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
19 deletions
+31
-19
Processors/TFT_eSPI_ESP32.c
Processors/TFT_eSPI_ESP32.c
+2
-2
Processors/TFT_eSPI_ESP32.h
Processors/TFT_eSPI_ESP32.h
+3
-3
Processors/TFT_eSPI_ESP8266.c
Processors/TFT_eSPI_ESP8266.c
+1
-1
Processors/TFT_eSPI_ESP8266.h
Processors/TFT_eSPI_ESP8266.h
+2
-2
Processors/TFT_eSPI_Generic.c
Processors/TFT_eSPI_Generic.c
+1
-1
Processors/TFT_eSPI_Generic.h
Processors/TFT_eSPI_Generic.h
+2
-2
Processors/TFT_eSPI_STM32.c
Processors/TFT_eSPI_STM32.c
+1
-1
Processors/TFT_eSPI_STM32.h
Processors/TFT_eSPI_STM32.h
+2
-2
TFT_Drivers/ILI9486_Init.h
TFT_Drivers/ILI9486_Init.h
+12
-4
User_Setup_Select.h
User_Setup_Select.h
+5
-1
No files found.
Processors/TFT_eSPI_ESP32.c
View file @
fd16a606
...
...
@@ -173,7 +173,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len)
}
////////////////////////////////////////////////////////////////////////////////////////
#elif !defined (
ILI9481_DRIVER) && !defined (ILI9488_DRIVER) && !defined (TFT_PARALLEL_8_BIT) // Most
displays
#elif !defined (
SPI_18BIT_DRIVER) && !defined (TFT_PARALLEL_8_BIT) // Most SPI
displays
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
@@ -349,7 +349,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
}
////////////////////////////////////////////////////////////////////////////////////////
#elif
(defined (ILI9481_DRIVER) || defined (ILI9488_DRIVER)) && !defined (TFT_PARALLEL_8_BIT)// Now code for ILI9481/8
#elif
defined (SPI_18BIT_DRIVER) // SPI 18 bit colour
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_ESP32.h
View file @
fd16a606
...
...
@@ -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(
ILI9481_DRIVER) && !defined(ILI9488_DRIVER)
&& !defined (RPI_DISPLAY_TYPE) || (defined (RPI_DISPLAY_TYPE) && defined (ST7796_DRIVER))
#if !defined(TFT_PARALLEL_8_BIT) && !defined(
SPI_18BIT_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()
...
...
@@ -349,9 +349,9 @@
#endif
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to a
n ILI9488
TFT
// Macros to write commands/pixel colour data to a
SPI ILI948x
TFT
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (
ILI9481_DRIVER) || defined (ILI9488_DRIVER)// 16 bit colour converted to 3 bytes for 18 bit RGB
#elif defined (
SPI_18BIT_DRIVER) // SPI 18 bit colour
// Write 8 bits to TFT
#define tft_Write_8(C) spi.transfer(C)
...
...
Processors/TFT_eSPI_ESP8266.c
View file @
fd16a606
...
...
@@ -109,7 +109,7 @@ void TFT_eSPI::pushSwapBytePixels(const void* data_in, uint32_t len){
}
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (
ILI9481_DRIVER) || defined (ILI9488_DRIVER)
#elif defined (
SPI_18BIT_DRIVER) // SPI 18 bit colour
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_ESP8266.h
View file @
fd16a606
...
...
@@ -115,9 +115,9 @@
#endif
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to a
n ILI9488
TFT
// Macros to write commands/pixel colour data to a
SPI ILI948x
TFT
////////////////////////////////////////////////////////////////////////////////////////
#if defined (
ILI9481_DRIVER) || defined (ILI9488_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
#if defined (
SPI_18BIT_DRIVER) // SPI 18 bit colour
// Write 8 bits to TFT
#define tft_Write_8(C) spi.transfer(C)
...
...
Processors/TFT_eSPI_Generic.c
View file @
fd16a606
...
...
@@ -168,7 +168,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len)
}
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (
ILI9481_DRIVER) || defined (ILI9488_DRIVER) // For 24 bit SPI colour TFT
#elif defined (
SPI_18BIT_DRIVER) // SPI 18 bit colour
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_Generic.h
View file @
fd16a606
...
...
@@ -92,9 +92,9 @@
#endif
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to a
n ILI9488
TFT
// Macros to write commands/pixel colour data to a
SPI ILI948x
TFT
////////////////////////////////////////////////////////////////////////////////////////
#if defined (
ILI9481_DRIVER) || defined (ILI9488_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
#if defined (
SPI_18BIT_DRIVER) // SPI 18 bit colour
// Write 8 bits to TFT
#define tft_Write_8(C) spi.transfer(C)
...
...
Processors/TFT_eSPI_STM32.c
View file @
fd16a606
...
...
@@ -260,7 +260,7 @@ void TFT_eSPI::pushPixels(const void* data_in, uint32_t len)
}
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (
ILI9481_DRIVER) || defined (ILI9488_DRIVER) // For 24 bit colour TFT ############# UNTESTED ###################
#elif defined (
SPI_18BIT_DRIVER) // SPI 18 bit colour
////////////////////////////////////////////////////////////////////////////////////////
/***************************************************************************************
...
...
Processors/TFT_eSPI_STM32.h
View file @
fd16a606
...
...
@@ -985,9 +985,9 @@
#endif
#endif
////////////////////////////////////////////////////////////////////////////////////////
// Macros to write commands/pixel colour data to a SPI ILI948
8
TFT
// Macros to write commands/pixel colour data to a SPI ILI948
x
TFT
////////////////////////////////////////////////////////////////////////////////////////
#elif defined (
ILI9481_DRIVER) || defined (ILI9488_DRIVER) // 16 bit colour converted to 3 bytes for 18 bit RGB
#elif defined (
SPI_18BIT_DRIVER) // SPI 18 bit colour
// Write 8 bits to TFT
#define tft_Write_8(C) \
...
...
TFT_Drivers/ILI9486_Init.h
View file @
fd16a606
...
...
@@ -15,8 +15,12 @@
delay
(
120
);
writecommand
(
0x3A
);
writedata
(
0x55
);
#ifdef TFT_PARALLEL_8_BIT
writedata
(
0x55
);
// 16 bit colour interface
#else
writedata
(
0x66
);
// 18 bit colour interface
#endif
writecommand
(
0xC2
);
writedata
(
0x44
);
...
...
@@ -60,8 +64,12 @@
writedata
(
0x20
);
writedata
(
0x00
);
writecommand
(
0x20
);
// display inversion OFF
#ifdef TFT_PARALLEL_8_BIT
writecommand
(
TFT_INVOFF
);
#else
writecommand
(
TFT_INVON
);
#endif
writecommand
(
0x36
);
writedata
(
0x48
);
...
...
User_Setup_Select.h
View file @
fd16a606
...
...
@@ -115,6 +115,11 @@
#endif
#endif
// Invoke 18 bit colour for selected displays
#if (defined (ILI9481_DRIVER) || defined (ILI9486_DRIVER) || defined (ILI9488_DRIVER)) && !defined (TFT_PARALLEL_8_BIT)
#define SPI_18BIT_DRIVER
#endif
// Load the right driver definition - do not tinker here !
#if defined (ILI9341_DRIVER)
#include <TFT_Drivers/ILI9341_Defines.h>
...
...
@@ -185,7 +190,6 @@
#define TFT_DRIVER 0x0000
#endif
// These are the pins for ESP8266 boards
// Name GPIO NodeMCU Function
#define PIN_D0 16 // GPIO16 WAKE
...
...
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