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:
Bodmer committed 2022-03-12 20:04:41 +00:00
1 parent 39b0d6ab9a
commit 31b2de56c1
4 files changed
+19 -5

No files matched your search

+4
View File
@@ -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