소스 검색

RepRapDiscount Smart Controller pin definitions.

Jonathan Bastien-Filiatrault 12 년 전
부모
커밋
3cbaad9288
2개의 변경된 파일23개의 추가작업 그리고 1개의 파일을 삭제
  1. 6
    1
      Marlin/Configuration.h
  2. 17
    0
      Marlin/pins.h

+ 6
- 1
Marlin/Configuration.h 파일 보기

@@ -296,8 +296,13 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
296 296
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
297 297
 //#define ULTIPANEL  //the ultipanel as on thingiverse
298 298
 
299
+// The RepRapDiscount Smart Controller
300
+// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
301
+//#define REPRAPDISCOUNTSC
299 302
 
300
-#ifdef ULTIMAKERCONTROLLER    //automatic expansion
303
+
304
+//automatic expansion
305
+#if defined(ULTIMAKERCONTROLLER) || defined(REPRAPDISCOUNTSC)
301 306
  #define ULTIPANEL
302 307
  #define NEWPANEL
303 308
 #endif 

+ 17
- 0
Marlin/pins.h 파일 보기

@@ -405,6 +405,23 @@
405 405
     #define encrot2 3
406 406
     #define encrot3 1
407 407
 
408
+    #ifdef REPRAPDISCOUNTSC
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
417
+
418
+      #define BTN_EN1 31
419
+      #define BTN_EN2 33
420
+      #define BTN_ENC 35
421
+      #define BEEPER 37
422
+      #define SDCARDDETECT 49
423
+    #endif
424
+
408 425
   #else //old style panel with shift register
409 426
     //arduino pin witch triggers an piezzo beeper
410 427
     #define BEEPER 33		No Beeper added

Loading…
취소
저장