Bläddra i källkod

BTT SKR 1.3 pins for Anet Full Graphics LCD (#16047)

hammerhead2k2 5 år sedan
förälder
incheckning
19f840a9b5
1 ändrade filer med 49 tillägg och 12 borttagningar
  1. 49
    12
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h

+ 49
- 12
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h Visa fil

@@ -169,32 +169,69 @@
169 169
 #endif
170 170
 
171 171
 /**
172
- *              _____                                             _____
173
- *          NC | · · | GND                                    5V | · · | GND
174
- *       RESET | · · | 1.31(SD_DETECT)             (LCD_D7) 1.23 | · · | 1.22 (LCD_D6)
175
- *  (MOSI)0.18 | · · | 3.25(BTN_EN2)               (LCD_D5) 1.21 | · · | 1.20 (LCD_D4)
176
- * (SD_SS)0.16 | · · | 3.26(BTN_EN1)               (LCD_RS) 1.19 | · · | 1.18 (LCD_EN)
177
- *   (SCK)0.15 | · · | 0.17(MISO)                 (BTN_ENC) 0.28 | · · | 1.30 (BEEPER)
178
- *              -----                                             -----
179
- *              EXP2                                              EXP1
172
+ *               _____                                              _____
173
+ *           NC | · · | GND                                     5V | · · | GND
174
+ *        RESET | · · | 1.31 (SD_DETECT)             (LCD_D7) 1.23 | · · | 1.22 (LCD_D6)
175
+ *  (MOSI) 0.18 | · · | 3.25 (BTN_EN2)               (LCD_D5) 1.21 | · · | 1.20 (LCD_D4)
176
+ * (SD_SS) 0.16 | · · | 3.26 (BTN_EN1)               (LCD_RS) 1.19 | · · | 1.18 (LCD_EN)
177
+ *   (SCK) 0.15 | · · | 0.17 (MISO)                 (BTN_ENC) 0.28 | · · | 1.30 (BEEPER)
178
+ *               -----                                              -----
179
+ *               EXP2                                               EXP1
180 180
  */
181 181
 #if HAS_SPI_LCD
182
-  #define BTN_ENC          P0_28   // (58) open-drain
183 182
 
184
-  #if ENABLED(CR10_STOCKDISPLAY)
183
+  #if ENABLED(ANET_FULL_GRAPHICS_LCD)
184
+
185
+    #error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_3.h' for details. Comment out this line to continue."
186
+
187
+   /**
188
+    * 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
189
+    * 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
190
+    * 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because this pin is open drain.)
191
+    * 4. A wire is needed to connect the Reset switch at J3 (LCD Pin7) to EXP2 (Pin3) on the board.
192
+    *
193
+    * !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
194
+    *
195
+    * The ANET_FULL_GRAPHICS_LCD connector plug:
196
+    *
197
+    *                  BEFORE                          AFTER
198
+    *                  _____                           _____
199
+    *           GND 1 | · · |  2 5V              5V 1 | · · |  2 GND
200
+    *            CS 3 | · · |  4 BTN_EN2         CS 3 | · · |  4 BTN_EN2
201
+    *           SID 5 | · · |  6 BTN_EN1        SID 5 | · · |  6 BTN_EN1
202
+    *          open 7 | · · |  8 BTN_ENC        CLK 7 | · · |  8 BTN_ENC
203
+    *           CLK 9 | · · | 10 Beeper        open 9 | · · | 10 Beeper
204
+    *                  -----                           -----
205
+    *                   LCD                             LCD
206
+    */
207
+
208
+    #define LCD_PINS_RS    P1_23
209
+
210
+    #define BTN_EN1        P1_20
211
+    #define BTN_EN2        P1_22
212
+    #define BTN_ENC        P1_18
213
+
214
+    #define LCD_PINS_ENABLE P1_21
215
+    #define LCD_PINS_D4    P1_19
216
+
217
+  #elif ENABLED(CR10_STOCKDISPLAY)
218
+
185 219
     #define LCD_PINS_RS    P1_22
186 220
 
187 221
     #define BTN_EN1        P1_18
188 222
     #define BTN_EN2        P1_20
223
+    #define BTN_ENC        P0_28   // (58) open-drain
189 224
 
190 225
     #define LCD_PINS_ENABLE P1_23
191 226
     #define LCD_PINS_D4    P1_21
192 227
 
193
-  #else
228
+  #else // !CR10_STOCKDISPLAY
229
+
194 230
     #define LCD_PINS_RS    P1_19
195 231
 
196 232
     #define BTN_EN1        P3_26   // (31) J3-2 & AUX-4
197 233
     #define BTN_EN2        P3_25   // (33) J3-4 & AUX-4
234
+    #define BTN_ENC        P0_28   // (58) open-drain
198 235
 
199 236
     #define LCD_PINS_ENABLE P1_18
200 237
     #define LCD_PINS_D4    P1_20
@@ -247,7 +284,7 @@
247 284
 
248 285
     #endif // !FYSETC_MINI_12864
249 286
 
250
-  #endif
287
+  #endif // !CR10_STOCKDISPLAY
251 288
 
252 289
 #endif // HAS_SPI_LCD
253 290
 

Laddar…
Avbryt
Spara