Update HX8357D driver to support RGB and BGR displays
In setup add the following lines: // If green and blue swapped on display then change the RGB colour order // Only uncomment ONE of the following options #define TFT_RGB_ORDER TFT_RGB // Red-Green-Blue //#define TFT_RGB_ORDER TFT_BGR // Blue-Green-RED
This commit is contained in:
1 parent
39b0d6ab9a
commit
31b2de56c1
4 files changed
+19
-5
No files matched your search
@@ -2,6 +2,10 @@
|
||||
|
||||
#define HX8357D_DRIVER
|
||||
|
||||
// If green and blue swapped on display then change the RGB colour order
|
||||
// Only uncomment ONE of the following options
|
||||
#define TFT_RGB_ORDER TFT_RGB // Red-Green-Blue
|
||||
//#define TFT_RGB_ORDER TFT_BGR // Blue-Green-RED
|
||||
|
||||
// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation
|
||||
#define TFT_CS PIN_D8 // Chip select control pin D8
|
||||
|
||||
Reference in new issue
Block a user