Browse Source

Ender-2 LCD on BTT SKR E3 (#15924)

TheAssassin 5 years ago
parent
commit
814d908a8a

+ 24
- 1
Marlin/src/pins/stm32/pins_BIGTREE_SKR_E3_DIP.h View File

@@ -176,6 +176,7 @@
176 176
   #define BTN_ENC          PB6
177 177
 
178 178
   #if ENABLED(CR10_STOCKDISPLAY)
179
+
179 180
     #define LCD_PINS_RS    PB8
180 181
 
181 182
     #define BTN_EN1        PA9
@@ -184,8 +185,30 @@
184 185
     #define LCD_PINS_ENABLE PB7
185 186
     #define LCD_PINS_D4    PB9
186 187
 
188
+  #elif ENABLED(MKS_MINI_12864)
189
+
190
+    /** Creality Ender-2 display pinout
191
+     *                   _____
192
+     *               5V | · · | GND
193
+     *      (MOSI) PB7  | · · | PB8  (LCD_RS)
194
+     *    (LCD_A0) PB9  | · · | PA10 (BTN_EN2)
195
+     *            RESET | · · | PA9  (BTN_EN1)
196
+     *   (BTN_ENC) PB6  | · · | PA15 (SCK)
197
+     *                   -----
198
+     *                    EXP1
199
+     */
200
+
201
+    #define BTN_EN1      PA9
202
+    #define BTN_EN2      PA10
203
+    #define DOGLCD_CS    PB8
204
+    #define DOGLCD_A0    PB9
205
+    #define DOGLCD_SCK   PA15
206
+    #define DOGLCD_MOSI  PB7
207
+    #define FORCE_SOFT_SPI
208
+    #define LCD_BACKLIGHT_PIN -1
209
+
187 210
   #else
188
-    #error "Only CR10_STOCKDISPLAY is currently supported on the BIGTREE_SKR_E3_DIP."
211
+    #error "Only CR10_STOCKDISPLAY and MKS_MINI_12864 are currently supported on the BIGTREE_SKR_E3_DIP."
189 212
   #endif
190 213
 
191 214
 #endif // HAS_SPI_LCD

+ 23
- 1
Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_E3.h View File

@@ -137,8 +137,30 @@
137 137
     #define LCD_PINS_ENABLE PB7
138 138
     #define LCD_PINS_D4    PB9
139 139
 
140
+  #elif ENABLED(MKS_MINI_12864)
141
+
142
+    /** Creality Ender-2 display pinout
143
+     *                   _____
144
+     *               5V | · · | GND
145
+     *      (MOSI) PB7  | · · | PB8  (LCD_RS)
146
+     *    (LCD_A0) PB9  | · · | PA10 (BTN_EN2)
147
+     *            RESET | · · | PA9  (BTN_EN1)
148
+     *   (BTN_ENC) PB6  | · · | PA15 (SCK)
149
+     *                   -----
150
+     *                    EXP1
151
+     */
152
+
153
+    #define BTN_EN1      PA9
154
+    #define BTN_EN2      PA10
155
+    #define DOGLCD_CS    PB8
156
+    #define DOGLCD_A0    PB9
157
+    #define DOGLCD_SCK   PA15
158
+    #define DOGLCD_MOSI  PB7
159
+    #define FORCE_SOFT_SPI
160
+    #define LCD_BACKLIGHT_PIN -1
161
+
140 162
   #else
141
-    #error "Only CR10_STOCKDISPLAY is currently supported on the BIGTREE_SKR_MINI_E3."
163
+    #error "Only CR10_STOCKDISPLAY and MKS_MINI_12864 are currently supported on the BIGTREE_SKR_MINI_E3."
142 164
   #endif
143 165
 
144 166
 #endif // HAS_SPI_LCD

Loading…
Cancel
Save