Browse Source

📺 BTT SKR Mini E3 with Fysetc V2.1 / MKS V3 / BTT V1 Mini 12864 (#23793)

sam 3 years ago
parent
commit
c2c257ace7
No account linked to committer's email address
1 changed files with 65 additions and 1 deletions
  1. 65
    1
      Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h

+ 65
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h View File

235
       #define TFTGLCD_CS                    PA9
235
       #define TFTGLCD_CS                    PA9
236
 
236
 
237
     #endif
237
     #endif
238
+  
239
+  #elif ENABLED(FYSETC_MINI_12864_2_1)
240
+
241
+    #error "CAUTION! FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
242
+
243
+    /**
244
+     * FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 display pinout
245
+     *
246
+     *       Board                      Display
247
+     *       ------                     ------
248
+     * PB5  |10  9 | PA15       (BEEP) |10  9 | BTN_ENC
249
+     * PA9  | 8  7 | RESET      LCD_CS | 8  7 | LCD A0
250
+     * PA10 | 6  5 | PB9       LCD_RST | 6  5 | RED
251
+     * PB8  | 4  3 | PB15      (GREEN) | 4  3 | (BLUE)
252
+     * GND  | 2  1 | 5V            GND | 2  1 | 5V
253
+     *       ------                     ------
254
+     *        EXP1                       EXP1
255
+     *
256
+     *            ---                   ------
257
+     *       RST | 1 |          (MISO) |10  9 | SCK
258
+     * (RX2) PA2 | 2 |         BTN_EN1 | 8  7 | (SS)
259
+     * (TX2) PA3 | 3 |         BTN_EN2 | 6  5 | MOSI
260
+     *       GND | 4 |            (CD) | 4  3 | (RST)
261
+     *        5V | 5 |           (GND) | 2  1 | (KILL)
262
+     *            ---                   ------
263
+     *            TFT                    EXP2
264
+     *
265
+     * Needs custom cable:
266
+     *
267
+     *    Board             Display
268
+     *
269
+     *   EXP1-1 ----------- EXP1-1
270
+     *   EXP1-2 ----------- EXP1-2
271
+     *   EXP1-3 ----------- EXP2-6
272
+     *   EXP1-4 ----------- EXP1-5
273
+     *   EXP1-5 ----------- EXP2-8
274
+     *   EXP1-6 ----------- EXP1-6
275
+     *   EXP1-8 ----------- EXP1-8
276
+     *   EXP1-9 ----------- EXP1-9
277
+     *  EXP1-10 ----------- EXP1-7
278
+     *
279
+     *    TFT-2 ----------- EXP2-9
280
+     *    TFT-3 ----------- EXP2-5
281
+     *
282
+     * for backlight configuration see steps 2 (V2.1) and 3 in https://wiki.fysetc.com/Mini12864_Panel/
283
+     */
284
+
285
+    #define LCD_PINS_RS                     PA9     // CS
286
+    #define LCD_PINS_ENABLE                 PA3     // MOSI
287
+    #define LCD_BACKLIGHT_PIN               -1
288
+    #define NEOPIXEL_PIN                    PB8
289
+    #define LCD_CONTRAST                    255
290
+    #define LCD_RESET_PIN                   PA10
291
+
292
+    #define DOGLCD_CS                       PA9
293
+    #define DOGLCD_A0                       PB5
294
+    #define DOGLCD_SCK                      PA2
295
+    #define DOGLCD_MOSI                     PA3
296
+
297
+    #define BTN_ENC                         PA15
298
+    #define BTN_EN1                         PB9
299
+    #define BTN_EN2                         PB15
300
+
301
+    #define FORCE_SOFT_SPI
238
 
302
 
239
   #else
303
   #else
240
-    #error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, and TFTGLCD_PANEL_(SPI|I2C) are currently supported on the BIGTREE_SKR_MINI_E3."
304
+    #error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, TFTGLCD_PANEL_(SPI|I2C), FYSETC_MINI_12864_2_1, MKS_MINI_12864_V3, and BTT_MINI_12864_V1 are currently supported on the BIGTREE_SKR_MINI_E3."
241
   #endif
305
   #endif
242
 
306
 
243
 #endif // HAS_WIRED_LCD
307
 #endif // HAS_WIRED_LCD

Loading…
Cancel
Save