Browse Source

Fix FYSETC, MINIPANEL, MKS_MINI_12864 display (#13864)

Luu Lac 6 years ago
parent
commit
39ebca6b5f
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      Marlin/src/lcd/dogm/ultralcd_DOGM.h

+ 7
- 3
Marlin/src/lcd/dogm/ultralcd_DOGM.h View File

@@ -107,12 +107,16 @@
107 107
   // Generic support for SSD1309 OLED I2C LCDs
108 108
   #define U8G_CLASS U8GLIB_SSD1309_128X64
109 109
   #define U8G_PARAM (U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST)
110
-#elif EITHER(MINIPANEL, FYSETC_MINI_12864)
111
-  // The MINIPanel display
110
+#elif ENABLED(MINIPANEL)
111
+  // MINIPanel display
112 112
   //#define U8G_CLASS U8GLIB_MINI12864
113 113
   //#define U8G_PARAM DOGLCD_CS, DOGLCD_A0                            // 8 stripes
114
+  #define U8G_CLASS U8GLIB_MINI12864_2X
115
+  #define U8G_PARAM DOGLCD_CS, DOGLCD_A0                              // 8 stripes
116
+#elif ENABLED(FYSETC_MINI_12864)
117
+  // The FYSETC_MINI_12864 display
114 118
   #define U8G_CLASS U8GLIB_MINI12864_2X_HAL
115
-  #if BOTH(FYSETC_MINI_12864, FORCE_SOFT_SPI)
119
+  #if ENABLED(FORCE_SOFT_SPI)
116 120
     #define U8G_PARAM DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0   // 4 stripes SW-SPI
117 121
   #else
118 122
     #define U8G_PARAM DOGLCD_CS, DOGLCD_A0                            // 4 stripes HW-SPI

Loading…
Cancel
Save