Procházet zdrojové kódy

Add MKS MINI 12864 support to GT2560

Scott Lahteine před 6 roky
rodič
revize
ee9b8bf0f1
1 změnil soubory, kde provedl 15 přidání a 10 odebrání
  1. 15
    10
      Marlin/src/pins/pins_GT2560_REV_A.h

+ 15
- 10
Marlin/src/pins/pins_GT2560_REV_A.h Zobrazit soubor

@@ -98,18 +98,23 @@
98 98
 
99 99
   #if ENABLED(NEWPANEL)
100 100
 
101
-    #define LCD_PINS_RS    20
102
-    #define LCD_PINS_ENABLE 17
103
-    #define LCD_PINS_D4    16
104
-    #define LCD_PINS_D5    21
105
-    #define LCD_PINS_D6     5
106
-    #define LCD_PINS_D7     6
101
+    #if ENABLED(MKS_MINI_12864)
102
+      #define DOGLCD_A0     5
103
+      #define DOGLCD_CS    21
104
+      #define BTN_EN1      40
105
+      #define BTN_EN2      42
106
+    #else
107
+      #define LCD_PINS_RS  20
108
+      #define LCD_PINS_ENABLE 17
109
+      #define LCD_PINS_D4  16
110
+      #define LCD_PINS_D5  21
111
+      #define LCD_PINS_D6   5
112
+      #define LCD_PINS_D7   6
113
+      #define BTN_EN1      42
114
+      #define BTN_EN2      40
115
+    #endif
107 116
 
108
-    // Buttons are directly attached
109
-    #define BTN_EN1        42
110
-    #define BTN_EN2        40
111 117
     #define BTN_ENC        19
112
-
113 118
     #define SD_DETECT_PIN  38
114 119
 
115 120
   #else // !NEWPANEL

Loading…
Zrušit
Uložit