Browse Source

Avoid defining overriding definitions for the RepRapDiscount Smart

Controller. Remove common definitions. Harmonize declaration order.
Jonathan Bastien-Filiatrault 12 years ago
parent
commit
0f73afb0b0
1 changed files with 26 additions and 28 deletions
  1. 26
    28
      Marlin/pins.h

+ 26
- 28
Marlin/pins.h View File

@@ -360,7 +360,12 @@
360 360
 #define FAN_PIN            4 // IO pin. Buffer needed
361 361
 #endif
362 362
 #define PS_ON_PIN          12
363
+
364
+#ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
365
+#define KILL_PIN           41
366
+#else
363 367
 #define KILL_PIN           -1
368
+#endif
364 369
 
365 370
 #define HEATER_0_PIN       10   // EXTRUDER 1
366 371
 #if MOTHERBOARD == 33
@@ -378,8 +383,15 @@
378 383
 #ifdef ULTRA_LCD
379 384
 
380 385
   #ifdef NEWPANEL
381
-  //arduino pin which triggers an piezzo beeper
382
-    #define BEEPER 33			// Beeper on AUX-4
386
+     //encoder rotation values
387
+    #define encrot0 0
388
+    #define encrot1 2
389
+    #define encrot2 3
390
+    #define encrot3 1
391
+
392
+    #define BLEN_A 0
393
+    #define BLEN_B 1
394
+    #define BLEN_C 2
383 395
 
384 396
     #define LCD_PINS_RS 16 
385 397
     #define LCD_PINS_ENABLE 17
@@ -388,38 +400,24 @@
388 400
     #define LCD_PINS_D6 27
389 401
     #define LCD_PINS_D7 29
390 402
     
391
-    //buttons are directly attached using AUX-2
392
-    #define BTN_EN1 37
393
-    #define BTN_EN2 35
394
-    #define BTN_ENC 31  //the click
395
-    
396
-    #define BLEN_C 2
397
-    #define BLEN_B 1
398
-    #define BLEN_A 0
399
-    
400
-    #define SDCARDDETECT -1		// Ramps does not use this port
401
-    
402
-      //encoder rotation values
403
-    #define encrot0 0
404
-    #define encrot1 2
405
-    #define encrot2 3
406
-    #define encrot3 1
407
-
408 403
     #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
409
-      // Override partially the above definitions
410
-      #define KILL_PIN 41
411
-      #define LCD_PINS_RS 16
412
-      #define LCD_PINS_ENABLE 17
413
-      #define LCD_PINS_D4 23
414
-      #define LCD_PINS_D5 25
415
-      #define LCD_PINS_D6 27
416
-      #define LCD_PINS_D7 29
404
+      #define BEEPER 37
417 405
 
418 406
       #define BTN_EN1 31
419 407
       #define BTN_EN2 33
420 408
       #define BTN_ENC 35
421
-      #define BEEPER 37
409
+
422 410
       #define SDCARDDETECT 49
411
+    #else
412
+      //arduino pin which triggers an piezzo beeper
413
+      #define BEEPER 33	 // Beeper on AUX-4
414
+
415
+      //buttons are directly attached using AUX-2
416
+      #define BTN_EN1 37
417
+      #define BTN_EN2 35
418
+      #define BTN_ENC 31  //the click
419
+
420
+      #define SDCARDDETECT -1  // Ramps does not use this port
423 421
     #endif
424 422
 
425 423
   #else //old style panel with shift register

Loading…
Cancel
Save