Steve Kelly 11 лет назад
Родитель
Сommit
53614e5144
1 измененных файлов: 66 добавлений и 1 удалений
  1. 66
    1
      Marlin/pins.h

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

@@ -1723,9 +1723,74 @@
1723 1723
 #define LED_PIN            13
1724 1724
 #define FAN_PIN            8
1725 1725
 #define PS_ON_PIN          4
1726
-#define KILL_PIN           -1
1726
+#define KILL_PIN           -1 //80 with Smart Controller LCD
1727 1727
 #define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
1728 1728
 
1729
+#ifdef ULTRA_LCD
1730
+  #define KILL_PIN 80
1731
+  #ifdef NEWPANEL
1732
+   //arduino pin which triggers an piezzo beeper
1733
+    #define BEEPER 79      // Beeper on AUX-4
1734
+    #define LCD_PINS_RS 70
1735
+    #define LCD_PINS_ENABLE 71
1736
+    #define LCD_PINS_D4 72
1737
+    #define LCD_PINS_D5 73
1738
+    #define LCD_PINS_D6 74
1739
+    #define LCD_PINS_D7 75
1740
+
1741
+    //buttons are directly attached using AUX-2
1742
+    #define BTN_EN1 76
1743
+    #define BTN_EN2 77
1744
+    #define BTN_ENC 78  //the click
1745
+
1746
+    #define BLEN_C 2
1747
+    #define BLEN_B 1
1748
+    #define BLEN_A 0
1749
+
1750
+    #define SDCARDDETECT 81    // Ramps does not use this port
1751
+
1752
+    //encoder rotation values
1753
+    #define encrot0 0
1754
+    #define encrot1 2
1755
+    #define encrot2 3
1756
+    #define encrot3 1
1757
+  #else //old style panel with shift register
1758
+    //arduino pin witch triggers an piezzo beeper
1759
+    #define BEEPER 33    No Beeper added
1760
+    //buttons are attached to a shift register
1761
+    // Not wired this yet
1762
+    // #define SHIFT_CLK 38
1763
+    // #define SHIFT_LD 42
1764
+    // #define SHIFT_OUT 40
1765
+    // #define SHIFT_EN 17
1766
+
1767
+    #define LCD_PINS_RS 75
1768
+    #define LCD_PINS_ENABLE 17
1769
+    #define LCD_PINS_D4 23
1770
+    #define LCD_PINS_D5 25
1771
+    #define LCD_PINS_D6 27
1772
+    #define LCD_PINS_D7 29
1773
+
1774
+    //encoder rotation values
1775
+    #define encrot0 0
1776
+    #define encrot1 2
1777
+    #define encrot2 3
1778
+    #define encrot3 1
1779
+
1780
+    //bits in the shift register that carry the buttons for:
1781
+    // left up center down right red
1782
+    #define BL_LE 7
1783
+    #define BL_UP 6
1784
+    #define BL_MI 5
1785
+    #define BL_DW 4
1786
+    #define BL_RI 3
1787
+    #define BL_ST 2
1788
+    #define BLEN_B 1
1789
+    #define BLEN_A 0
1790
+  #endif
1791
+#endif //ULTRA_LCD
1792
+
1793
+
1729 1794
 #endif
1730 1795
 
1731 1796
 /****************************************************************************************

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