Просмотр исходного кода

Merge pull request #363 from yuroller/sanguino_panelolu

Panelolu pin assignment for sanguinololu
daid 12 лет назад
Родитель
Сommit
c1730e2b08
1 измененных файлов: 36 добавлений и 3 удалений
  1. 36
    3
      Marlin/pins.h

+ 36
- 3
Marlin/pins.h Просмотреть файл

@@ -418,9 +418,9 @@
418 418
       #define BTN_EN2 35
419 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 424
         #define SDCARDDETECT -1  // Ramps does not use this port
425 425
       #endif
426 426
     #endif
@@ -723,6 +723,39 @@
723 723
 #define SDSS               24
724 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 759
 #endif
727 760
 
728 761
 

Загрузка…
Отмена
Сохранить