Преглед изворни кода

Add MKS MINI 12864 support for GT2560

Moritz Bitsch пре 7 година
родитељ
комит
b22c87183f
2 измењених фајлова са 26 додато и 12 уклоњено
  1. 1
    1
      Marlin/example_configurations/Geeetech/GT2560/Configuration.h
  2. 25
    11
      Marlin/pins_GT2560_REV_A.h

+ 1
- 1
Marlin/example_configurations/Geeetech/GT2560/Configuration.h Прегледај датотеку

1735
 /**
1735
 /**
1736
  * Customize common displays for GT2560
1736
  * Customize common displays for GT2560
1737
  */
1737
  */
1738
-#if ENABLED(ULTIMAKERCONTROLLER) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) || ENABLED(G3D_PANEL)
1738
+#if ENABLED(ULTIMAKERCONTROLLER) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) || ENABLED(G3D_PANEL) || ENABLED(MKS_MINI_12864)
1739
   #define SDSUPPORT   // Force SD Card support on for these displays
1739
   #define SDSUPPORT   // Force SD Card support on for these displays
1740
 #elif ENABLED(ULTRA_LCD) && ENABLED(DOGLCD) // No panel, just graphical LCD?
1740
 #elif ENABLED(ULTRA_LCD) && ENABLED(DOGLCD) // No panel, just graphical LCD?
1741
   #define LCD_WIDTH 20 // Default is 22. For this Geeetech use 20
1741
   #define LCD_WIDTH 20 // Default is 22. For this Geeetech use 20

+ 25
- 11
Marlin/pins_GT2560_REV_A.h Прегледај датотеку

98
 
98
 
99
   #if ENABLED(NEWPANEL)
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
+
105
+      #define BTN_EN1           40
106
+      #define BTN_EN2           42
107
+      #define BTN_ENC           19
108
+
109
+      #define SDSS              53
110
+      #define SD_DETECT_PIN     38
111
+  #else
112
+
113
+      #define LCD_PINS_RS    20
114
+      #define LCD_PINS_ENABLE 17
115
+      #define LCD_PINS_D4    16
116
+      #define LCD_PINS_D5    21
117
+      #define LCD_PINS_D6     5
118
+      #define LCD_PINS_D7     6
119
+
120
+      // Buttons are directly attached
121
+      #define BTN_EN1        42
122
+      #define BTN_EN2        40
123
+      #define BTN_ENC        19
107
 
124
 
108
-    // Buttons are directly attached
109
-    #define BTN_EN1        42
110
-    #define BTN_EN2        40
111
-    #define BTN_ENC        19
125
+      #define SD_DETECT_PIN  38
112
 
126
 
113
-    #define SD_DETECT_PIN  38
127
+  #endif
114
 
128
 
115
   #else // !NEWPANEL
129
   #else // !NEWPANEL
116
 
130
 

Loading…
Откажи
Сачувај