소스 검색

Panelolu pin assignment for sanguinololu from http://reprap.org/wiki/Panelolu

Yuri Valentini 12 년 전
부모
커밋
86358dd6cd
1개의 변경된 파일36개의 추가작업 그리고 3개의 파일을 삭제
  1. 36
    3
      Marlin/pins.h

+ 36
- 3
Marlin/pins.h 파일 보기

418
       #define BTN_EN2 35
418
       #define BTN_EN2 35
419
       #define BTN_ENC 31  //the click
419
       #define BTN_ENC 31  //the click
420
 
420
 
421
-      #ifdef G3D_PANEL
422
-        #define SDCARDDETECT 49
423
-      #else
421
+      #ifdef G3D_PANEL
422
+        #define SDCARDDETECT 49
423
+      #else
424
         #define SDCARDDETECT -1  // Ramps does not use this port
424
         #define SDCARDDETECT -1  // Ramps does not use this port
425
       #endif
425
       #endif
426
     #endif
426
     #endif
723
 #define SDSS               24
723
 #define SDSS               24
724
 #endif
724
 #endif
725
 
725
 
726
+ #ifdef ULTRA_LCD
727
+   #ifdef NEWPANEL
728
+     //we have no buzzer installed
729
+     #define BEEPER -1
730
+     //LCD Pins
731
+     #define LCD_PINS_RS        4
732
+     #define LCD_PINS_ENABLE    17
733
+     #define LCD_PINS_D4        30
734
+     #define LCD_PINS_D5        29
735
+     #define LCD_PINS_D6        28
736
+     #define LCD_PINS_D7        27
737
+     
738
+     //The encoder and click button
739
+     #define BTN_EN1 11  //must be a hardware interrupt pin
740
+     #define BTN_EN2 10 //must be hardware interrupt pin
741
+     #define BTN_ENC 16  //the switch
742
+     //not connected to a pin
743
+     #define SDCARDDETECT -1
744
+     
745
+     //from the same bit in the RAMPS Newpanel define
746
+     //encoder rotation values
747
+     #define encrot0 0
748
+     #define encrot1 2
749
+     #define encrot2 3
750
+     #define encrot3 1
751
+     
752
+     #define BLEN_C 2
753
+     #define BLEN_B 1
754
+     #define BLEN_A 0
755
+     
756
+   #endif //Newpanel
757
+ #endif //Ultipanel
758
+ 
726
 #endif
759
 #endif
727
 
760
 
728
 
761
 

Loading…
취소
저장