mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-04 13:14:46 +02:00
Fix SPI incompatibility
I fixed the parallel and broke the SPI, now both work!
This commit is contained in:
@@ -228,7 +228,11 @@
|
|||||||
#define SPI_32(H,L) ( (H)<<16 | (L) )
|
#define SPI_32(H,L) ( (H)<<16 | (L) )
|
||||||
#define COL_32(H,L) ( (H)<<16 | (L) )
|
#define COL_32(H,L) ( (H)<<16 | (L) )
|
||||||
#else
|
#else
|
||||||
|
#ifdef ESP32_PARALLEL
|
||||||
#define SPI_32(H,L) ( (H)<<16 | (L) )
|
#define SPI_32(H,L) ( (H)<<16 | (L) )
|
||||||
|
#else
|
||||||
|
#define SPI_32(H,L) ( ((H)<<8 | (H)>>8) | (((L)<<8 | (L)>>8)<<16 ) )
|
||||||
|
#endif
|
||||||
// Swap byte order for concatenated 16 bit colors
|
// Swap byte order for concatenated 16 bit colors
|
||||||
// AB CD -> DCBA for 32 bit register write
|
// AB CD -> DCBA for 32 bit register write
|
||||||
#define COL_32(H,L) ( ((H)<<8 | (H)>>8) | (((L)<<8 | (L)>>8)<<16 ) )
|
#define COL_32(H,L) ( ((H)<<8 | (H)>>8) | (((L)<<8 | (L)>>8)<<16 ) )
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TFT_eSPI",
|
"name": "TFT_eSPI",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"keywords": "tft, ePaper, display, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789",
|
"keywords": "tft, ePaper, display, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789",
|
||||||
"description": "A TFT and ePaper SPI graphics library for ESP8266 and ESP32",
|
"description": "A TFT and ePaper SPI graphics library for ESP8266 and ESP32",
|
||||||
"repository":
|
"repository":
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name=TFT_eSPI
|
name=TFT_eSPI
|
||||||
version=1.3.2
|
version=1.3.3
|
||||||
author=Bodmer
|
author=Bodmer
|
||||||
maintainer=Bodmer
|
maintainer=Bodmer
|
||||||
sentence=A fast TFT graphics library for ESP8266 and ESP32 processors for the Arduino IDE
|
sentence=A fast TFT graphics library for ESP8266 and ESP32 processors for the Arduino IDE
|
||||||
|
Reference in New Issue
Block a user