Browse Source

Support ANET_FULL_GRAPHICS_LCD_ALT_WIRING on BTT SKR 1.4 (#20427)

Darren Peter 3 years ago
parent
commit
2844086772
No account linked to committer's email address

+ 30
- 1
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h View File

@@ -260,7 +260,36 @@
260 260
 
261 261
 #if HAS_WIRED_LCD && !HAS_BTT_EXP_MOT
262 262
   #if ENABLED(ANET_FULL_GRAPHICS_LCD_ALT_WIRING)
263
-    #error "ANET_FULL_GRAPHICS_LCD_ALT_WIRING only applies to the ANET 1.0 board."
263
+    #error "CAUTION! ANET_FULL_GRAPHICS_LCD_ALT_WIRING requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. Comment out this line to continue."
264
+
265
+    /**
266
+     * 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
267
+     * 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
268
+     *
269
+     * !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
270
+     *
271
+     * The ANET_FULL_GRAPHICS_LCD_ALT_WIRING connector plug:
272
+     *
273
+     *                BEFORE                     AFTER
274
+     *                _____                      _____
275
+     *           GND | 1 2 | 5V              5V | 1 2 | GND
276
+     *            CS | 3 4 | BTN_EN2         CS | 3 4 | BTN_EN2
277
+     *           SID | 5 6   BTN_EN1        SID | 5 6   BTN_EN1
278
+     *          open | 7 8 | BTN_ENC       open | 7 8 | BTN_ENC
279
+     *           CLK | 9 10| Beeper         CLK | 9 10| Beeper
280
+     *                -----                      -----
281
+     *                 LCD                        LCD
282
+     */
283
+   
284
+    #define LCD_PINS_RS             EXPA1_07_PIN
285
+
286
+    #define BTN_EN1                 EXPA1_05_PIN
287
+    #define BTN_EN2                 EXPA1_04_PIN
288
+    #define BTN_ENC                 EXPA1_10_PIN
289
+
290
+    #define LCD_PINS_ENABLE         EXPA1_08_PIN
291
+    #define LCD_PINS_D4             EXPA1_06_PIN
292
+    #define BEEPER_PIN              EXPA1_03_PIN
264 293
 
265 294
   #elif ENABLED(ANET_FULL_GRAPHICS_LCD)
266 295
     #error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. Comment out this line to continue."

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h View File

@@ -104,7 +104,7 @@
104 104
 //
105 105
 // LCD / Controller
106 106
 //
107
-#if HAS_WIRED_LCD && DISABLED(LCD_USE_I2C_BUZZER)
107
+#if !defined(BEEPER_PIN) && HAS_WIRED_LCD && DISABLED(LCD_USE_I2C_BUZZER)
108 108
   #define BEEPER_PIN                       P1_30  // (37) not 5V tolerant
109 109
 #endif
110 110
 

Loading…
Cancel
Save