|
|
|
|
39
|
#define ST7789V_ORIENTATION_DOWN 0 // 240x320 ; Cable on the lower side
|
39
|
#define ST7789V_ORIENTATION_DOWN 0 // 240x320 ; Cable on the lower side
|
40
|
|
40
|
|
41
|
//#define ST7789V_COLOR_BGR
|
41
|
//#define ST7789V_COLOR_BGR
|
42
|
-#define ST7789V_ORIENTATION ST7789V_ORIENTATION_LEFT
|
|
|
|
|
42
|
+#ifndef ST7789V_ORIENTATION
|
|
|
43
|
+ #define ST7789V_ORIENTATION ST7789V_ORIENTATION_LEFT
|
|
|
44
|
+#endif
|
43
|
#define ST7789V_MADCTL_DATA (ST7789V_ORIENTATION | TERN(ST7789V_COLOR_BGR, ST7789V_MADCTL_BGR, ST7789V_MADCTL_RGB))
|
45
|
#define ST7789V_MADCTL_DATA (ST7789V_ORIENTATION | TERN(ST7789V_COLOR_BGR, ST7789V_MADCTL_BGR, ST7789V_MADCTL_RGB))
|
44
|
|
46
|
|
45
|
#define ST7789V_NOP 0x00 // No Operation
|
47
|
#define ST7789V_NOP 0x00 // No Operation
|