From 0218ad45a11e572b6c73f02d4fdfa20ed82152d5 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 23 Jan 2015 07:42:26 -0800 Subject: [PATCH 1/3] Proposed fix to #1379. Printrboard I2C LCD support --- Marlin/pins.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Marlin/pins.h b/Marlin/pins.h index 57bed581a7..91493430ad 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -1805,6 +1805,20 @@ #define MOSI_PIN 10 #endif +#if defined(ULTRA_LCD) && defined(NEWPANEL) + //we have no buzzer installed + #define BEEPER -1 + //LCD Pins + #ifdef LCD_I2C_PANELOLU2 + #define BTN_EN1 27 //RX1 - fastio.h pin mapping 27 + #define BTN_EN2 26 //TX1 - fastio.h pin mapping 26 + #define BTN_ENC 43 //A3 - fastio.h pin mapping 43 + #define SDSS 40 //use SD card on Panelolu2 (Teensyduino pin mapping) + #endif //LCD_I2C_PANELOLU2 + //not connected to a pin + #define SDCARDDETECT -1 +#endif //Ultipanel && Newpanel + #endif // TEENSYLU || PRINTRBOARD /**************************************************************************************** From 6723388f7f0619b99bc9b3ce5b77aef8049d272d Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 23 Jan 2015 07:42:26 -0800 Subject: [PATCH 2/3] Proposed fix to #1379. Printrboard I2C LCD support --- Marlin/pins.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Marlin/pins.h b/Marlin/pins.h index 8e084273a8..fb582e7828 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -1805,6 +1805,20 @@ #define MOSI_PIN 10 #endif +#if defined(ULTRA_LCD) && defined(NEWPANEL) + //we have no buzzer installed + #define BEEPER -1 + //LCD Pins + #ifdef LCD_I2C_PANELOLU2 + #define BTN_EN1 27 //RX1 - fastio.h pin mapping 27 + #define BTN_EN2 26 //TX1 - fastio.h pin mapping 26 + #define BTN_ENC 43 //A3 - fastio.h pin mapping 43 + #define SDSS 40 //use SD card on Panelolu2 (Teensyduino pin mapping) + #endif //LCD_I2C_PANELOLU2 + //not connected to a pin + #define SDCARDDETECT -1 +#endif //Ultipanel && Newpanel + #endif // TEENSYLU || PRINTRBOARD /**************************************************************************************** From a7b02975b727247f087eef99280bbaf1a3add6b3 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 24 Jan 2015 05:10:48 -0800 Subject: [PATCH 3/3] No TEMP1 or TEMP2 pins for TEENSYLU || PRINTRBOARD Pins 2 and 3 are probably general-use pins, since the filament sensor uses pin 2. --- Marlin/pins.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/pins.h b/Marlin/pins.h index fb582e7828..7eacb75e35 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -1788,8 +1788,8 @@ #endif //FILAMENT_SENSOR #endif -#define TEMP_1_PIN 2 -#define TEMP_2_PIN 3 +#define TEMP_1_PIN -1 +#define TEMP_2_PIN -1 #define SDPOWER -1 #define SDSS 8