浏览代码

Fix RE_ARM LCD pins to avoid #undef

Scott Lahteine 6 年前
父节点
当前提交
97f6396b25
共有 1 个文件被更改,包括 12 次插入24 次删除
  1. 12
    24
      Marlin/src/pins/pins_RAMPS_RE_ARM.h

+ 12
- 24
Marlin/src/pins/pins_RAMPS_RE_ARM.h 查看文件

@@ -286,18 +286,6 @@
286 286
     #define KILL_PIN            P1_22   // (41) J5-4 & AUX-4
287 287
     #define LCD_PINS_RS         P0_16   // (16) J3-7 & AUX-4
288 288
     #define LCD_SDSS            P0_16   // (16) J3-7 & AUX-4
289
-    #define LCD_BACKLIGHT_PIN   P0_16   // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
290
-    #define LCD_PINS_ENABLE     P0_18   // (51) (MOSI) J3-10 & AUX-3
291
-    #define LCD_PINS_D4         P0_15   // (52) (SCK)  J3-9 & AUX-3
292
-
293
-    #define DOGLCD_A0           P2_06   // (59) J3-8 & AUX-2
294
-    #define DOGLCD_CS           P0_26   // (63) J5-3 & AUX-2
295
-
296
-    #ifdef ULTIPANEL
297
-      #define LCD_PINS_D5       P1_17   // (71) ENET_MDIO
298
-      #define LCD_PINS_D6       P1_14   // (73) ENET_RX_ER
299
-      #define LCD_PINS_D7       P1_10   // (75) ENET_RXD1
300
-    #endif
301 289
 
302 290
     #if ENABLED(NEWPANEL)
303 291
       #if ENABLED(REPRAPWORLD_KEYPAD)
@@ -315,9 +303,6 @@
315 303
     #if ENABLED(VIKI2) || ENABLED(miniVIKI)
316 304
       // #define LCD_SCREEN_ROT_180
317 305
 
318
-      #undef  BEEPER_PIN
319
-      #define BEEPER_PIN          P1_30   // (37) may change if cable changes
320
-
321 306
       #define BTN_EN1             P3_26   // (31) J3-2 & AUX-4
322 307
       #define BTN_EN2             P3_25   // (33) J3-4 & AUX-4
323 308
       #define BTN_ENC             P2_11   // (35) J3-3 & AUX-4
@@ -325,21 +310,24 @@
325 310
       #define SD_DETECT_PIN       P1_31   // (49) not 5V tolerant   J3-1 & AUX-3
326 311
       #define KILL_PIN            P1_22   // (41) J5-4 & AUX-4
327 312
 
328
-      #undef  DOGLCD_CS
329 313
       #define DOGLCD_CS           P0_16   // (16)
330
-      #undef  LCD_BACKLIGHT_PIN   //P0_16   // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
331
-      #undef  LCD_PINS_ENABLE     //P0_18   // (51) (MOSI) J3-10 & AUX-3
332
-      #undef  LCD_PINS_D4         //P0_15   // (52) (SCK)  J3-9 & AUX-3
333
-
334
-      #undef  LCD_PINS_D5         //P2_06   // (59) J3-8 & AUX-2
335 314
       #define DOGLCD_A0           P2_06   // (59) J3-8 & AUX-2
336
-      #undef  LCD_PINS_D6         //P0_26   // (63) J5-3 & AUX-2
337
-      #undef  LCD_PINS_D7         //P1_21   // ( 6) (SERVO1) J5-1 & SERVO connector
338 315
       #define DOGLCD_SCK          SCK_PIN
339 316
       #define DOGLCD_MOSI         MOSI_PIN
340 317
 
341 318
       #define STAT_LED_BLUE_PIN   P0_26   // (63)  may change if cable changes
342 319
       #define STAT_LED_RED_PIN    P1_21   // ( 6)  may change if cable changes
320
+    #else
321
+      #define DOGLCD_CS           P0_26   // (63) J5-3 & AUX-2
322
+      #define DOGLCD_A0           P2_06   // (59) J3-8 & AUX-2
323
+      #define LCD_BACKLIGHT_PIN   P0_16   // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
324
+      #define LCD_PINS_ENABLE     P0_18   // (51) (MOSI) J3-10 & AUX-3
325
+      #define LCD_PINS_D4         P0_15   // (52) (SCK)  J3-9 & AUX-3
326
+      #if ENABLED(ULTIPANEL)
327
+        #define LCD_PINS_D5       P1_17   // (71) ENET_MDIO
328
+        #define LCD_PINS_D6       P1_14   // (73) ENET_RX_ER
329
+        #define LCD_PINS_D7       P1_10   // (75) ENET_RXD1
330
+      #endif
343 331
     #endif
344 332
 
345 333
     //#define MISO_PIN            P0_17   // (50)  system defined J3-10 & AUX-3
@@ -363,7 +351,7 @@
363 351
 //
364 352
 // Ethernet pins
365 353
 //
366
-#ifndef ULTIPANEL
354
+#if DISABLED(ULTIPANEL)
367 355
   #define ENET_MDIO   P1_17   // (71)  J12-4
368 356
   #define ENET_RX_ER  P1_14   // (73)  J12-6
369 357
   #define ENET_RXD1   P1_10   // (75)  J12-8

正在加载...
取消
保存