Browse Source

Proposed fix to #1379. Printrboard I2C LCD support

Scott Lahteine 10 years ago
parent
commit
0218ad45a1
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      Marlin/pins.h

+ 14
- 0
Marlin/pins.h View File

@@ -1805,6 +1805,20 @@
1805 1805
   #define MOSI_PIN         10
1806 1806
 #endif
1807 1807
 
1808
+#if defined(ULTRA_LCD) && defined(NEWPANEL)
1809
+  //we have no buzzer installed
1810
+  #define BEEPER -1
1811
+  //LCD Pins
1812
+  #ifdef LCD_I2C_PANELOLU2
1813
+    #define BTN_EN1 27  //RX1 - fastio.h pin mapping 27
1814
+    #define BTN_EN2 26  //TX1 - fastio.h pin mapping 26
1815
+    #define BTN_ENC 43 //A3 - fastio.h pin mapping 43
1816
+    #define SDSS   40 //use SD card on Panelolu2 (Teensyduino pin mapping)
1817
+  #endif //LCD_I2C_PANELOLU2
1818
+  //not connected to a pin
1819
+  #define SDCARDDETECT -1    
1820
+#endif //Ultipanel && Newpanel
1821
+
1808 1822
 #endif // TEENSYLU || PRINTRBOARD
1809 1823
 
1810 1824
 /****************************************************************************************

Loading…
Cancel
Save