|
@@ -161,7 +161,7 @@
|
161
|
161
|
#define SDIO_SUPPORT
|
162
|
162
|
#define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer
|
163
|
163
|
|
164
|
|
-#if ENABLED(CR10_STOCKDISPLAY)
|
|
164
|
+#if EITHER(CR10_STOCKDISPLAY, FYSETC_MINI_12864_2_1)
|
165
|
165
|
|
166
|
166
|
#if ENABLED(RET6_12864_LCD)
|
167
|
167
|
|
|
@@ -169,7 +169,7 @@
|
169
|
169
|
* RET6 12864 LCD
|
170
|
170
|
* ------
|
171
|
171
|
* PC6 | 1 2 | PB2
|
172
|
|
- * PB10 | 3 4 | PE8
|
|
172
|
+ * PB10 | 3 4 | PB11
|
173
|
173
|
* PB14 5 6 | PB13
|
174
|
174
|
* PB12 | 7 8 | PB15
|
175
|
175
|
* GND | 9 10 | 5V
|
|
@@ -179,16 +179,12 @@
|
179
|
179
|
#define EXP1_01_PIN PC6
|
180
|
180
|
#define EXP1_02_PIN PB2
|
181
|
181
|
#define EXP1_03_PIN PB10
|
182
|
|
- #define EXP1_04_PIN PE8
|
|
182
|
+ #define EXP1_04_PIN PB11
|
183
|
183
|
#define EXP1_05_PIN PB14
|
184
|
184
|
#define EXP1_06_PIN PB13
|
185
|
185
|
#define EXP1_07_PIN PB12
|
186
|
186
|
#define EXP1_08_PIN PB15
|
187
|
187
|
|
188
|
|
- #ifndef HAS_PIN_27_BOARD
|
189
|
|
- #define BEEPER_PIN EXP1_01_PIN
|
190
|
|
- #endif
|
191
|
|
-
|
192
|
188
|
#elif ENABLED(VET6_12864_LCD)
|
193
|
189
|
|
194
|
190
|
/**
|
|
@@ -212,8 +208,11 @@
|
212
|
208
|
#define EXP1_08_PIN PA7
|
213
|
209
|
|
214
|
210
|
#else
|
215
|
|
- #error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
|
|
211
|
+ #error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for the LCD with the Creality V4 controller."
|
216
|
212
|
#endif
|
|
213
|
+#endif
|
|
214
|
+
|
|
215
|
+#if ENABLED(CR10_STOCKDISPLAY)
|
217
|
216
|
|
218
|
217
|
#define LCD_PINS_RS EXP1_07_PIN
|
219
|
218
|
#define LCD_PINS_ENABLE EXP1_08_PIN
|
|
@@ -223,6 +222,10 @@
|
223
|
222
|
#define BTN_EN1 EXP1_03_PIN
|
224
|
223
|
#define BTN_EN2 EXP1_05_PIN
|
225
|
224
|
|
|
225
|
+ #ifndef HAS_PIN_27_BOARD
|
|
226
|
+ #define BEEPER_PIN EXP1_01_PIN
|
|
227
|
+ #endif
|
|
228
|
+
|
226
|
229
|
#elif ANY(HAS_DWIN_E3V2, IS_DWIN_MARLINUI, DWIN_VET6_CREALITY_LCD)
|
227
|
230
|
|
228
|
231
|
#if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
|
|
@@ -248,4 +251,55 @@
|
248
|
251
|
#define BEEPER_PIN EXP1_06_PIN
|
249
|
252
|
#endif
|
250
|
253
|
|
|
254
|
+#elif ENABLED(FYSETC_MINI_12864_2_1)
|
|
255
|
+
|
|
256
|
+ #ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
|
257
|
+ #error "CAUTION! FYSETC_MINI_12864_2_1 and clones require wiring modifications. See 'pins_CREALITY_V4.h' for details. Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning"
|
|
258
|
+ #endif
|
|
259
|
+
|
|
260
|
+ #if SD_CONNECTION_IS(LCD)
|
|
261
|
+ #error "The LCD sdcard is not connected with this configuration"
|
|
262
|
+ #endif
|
|
263
|
+
|
|
264
|
+ /**
|
|
265
|
+ *
|
|
266
|
+ * Board (RET6 12864 LCD) Display
|
|
267
|
+ * ------ ------
|
|
268
|
+ * (EN1) PC6 | 1 2 | PB2 (BTN_ENC) 5V |10 9 | GND
|
|
269
|
+ * (LCD_CS) PB10 | 3 4 | PB11 (LCD RESET) -- | 8 7 | --
|
|
270
|
+ * (LCD_A0) PB14 5 6 | PB13 (EN2) (DIN) | 6 5 (LCD RESET)
|
|
271
|
+ * (LCD_SCK)PB12 | 7 8 | PB15 (MOSI) (LCD_A0) | 4 3 | (LCD_CS)
|
|
272
|
+ * GND | 9 10 | 5V (BTN_ENC) | 2 1 | --
|
|
273
|
+ * ------ ------
|
|
274
|
+ * EXP1 EXP1
|
|
275
|
+ *
|
|
276
|
+ * ------
|
|
277
|
+ * ----- -- |10 9 | --
|
|
278
|
+ * | 1 | VCC (RESET) | 8 7 | --
|
|
279
|
+ * | 2 | PA13 (DIN) (MOSI) | 6 5 (EN2)
|
|
280
|
+ * | 3 | PA14 -- | 4 3 | (EN1)
|
|
281
|
+ * | 4 | GND (LCD_SCK)| 2 1 | --
|
|
282
|
+ * ----- ------
|
|
283
|
+ * Debug port EXP2
|
|
284
|
+ *
|
|
285
|
+ * Needs custom cable. Connect EN2-EN2, LCD_CS-LCD_CS and so on.
|
|
286
|
+ * Debug port is just above EXP1, You need to add pins
|
|
287
|
+ *
|
|
288
|
+ */
|
|
289
|
+
|
|
290
|
+ #define BTN_ENC EXP1_02_PIN
|
|
291
|
+ #define BTN_EN1 EXP1_01_PIN
|
|
292
|
+ #define BTN_EN2 EXP1_06_PIN
|
|
293
|
+ #define BEEPER_PIN -1
|
|
294
|
+
|
|
295
|
+ #define DOGLCD_CS EXP1_03_PIN
|
|
296
|
+ #define DOGLCD_A0 EXP1_05_PIN
|
|
297
|
+ #define DOGLCD_SCK EXP1_07_PIN
|
|
298
|
+ #define DOGLCD_MOSI EXP1_08_PIN
|
|
299
|
+ #define LCD_RESET_PIN EXP1_04_PIN
|
|
300
|
+
|
|
301
|
+ #define FORCE_SOFT_SPI
|
|
302
|
+ #define LCD_BACKLIGHT_PIN -1
|
|
303
|
+ #define NEOPIXEL_PIN PA13
|
|
304
|
+
|
251
|
305
|
#endif
|