MKS Robin new 320x240 TFT Color UI support (#18985)

This commit is contained in:
Anders Sahlman
2020-08-11 03:21:48 +02:00
committed by GitHub
parent 6dd054895b
commit b14f630f26
3 changed files with 96 additions and 44 deletions

View File

@ -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

View File

@ -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