Browse Source

Permit ST7789V orientation override (#19044)

mmajoor 4 years ago
parent
commit
8cededa7dd
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/src/lcd/tft/st7789v.h

+ 3
- 1
Marlin/src/lcd/tft/st7789v.h View File

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

Loading…
Cancel
Save