MKS Robin new 320x240 TFT Color UI support (#18985)
This commit is contained in:
committed by
Scott Lahteine
parent
489143f160
commit
3e2b272239
@ -38,8 +38,12 @@
|
||||
#define ILI9341_ORIENTATION_LEFT ILI9341_MADCTL_MY | ILI9341_MADCTL_MX | ILI9341_MADCTL_MV // 320x240 ; Cable on the left side
|
||||
#define ILI9341_ORIENTATION_DOWN ILI9341_MADCTL_MX // 240x320 ; Cable on the upper side
|
||||
|
||||
#define ILI9341_COLOR_BGR
|
||||
#define ILI9341_ORIENTATION ILI9341_ORIENTATION_LEFT
|
||||
#ifndef ILI9341_COLOR_RGB
|
||||
#define ILI9341_COLOR_BGR
|
||||
#endif
|
||||
#ifndef ILI9341_ORIENTATION
|
||||
#define ILI9341_ORIENTATION ILI9341_ORIENTATION_LEFT
|
||||
#endif
|
||||
#define ILI9341_MADCTL_DATA (ILI9341_ORIENTATION | TERN(ILI9341_COLOR_BGR, ILI9341_MADCTL_BGR, ILI9341_MADCTL_RGB))
|
||||
|
||||
#define ILI9341_NOP 0x00 // No Operation
|
||||
|
@ -38,7 +38,9 @@
|
||||
#define ILI9488_ORIENTATION_LEFT ILI9488_MADCTL_MY | ILI9488_MADCTL_MX | ILI9488_MADCTL_MV // 480x320 ; Cable on the left side
|
||||
#define ILI9488_ORIENTATION_DOWN ILI9488_MADCTL_MX // 320x480 ; Cable on the upper side
|
||||
|
||||
#define ILI9488_COLOR_BGR
|
||||
#ifndef ILI9488_COLOR_RGB
|
||||
#define ILI9488_COLOR_BGR
|
||||
#endif
|
||||
#ifndef ILI9488_ORIENTATION
|
||||
#define ILI9488_ORIENTATION ILI9488_ORIENTATION_LEFT
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user