From 86358dd6cd0af76fdffddb642be2f90a4c1db151 Mon Sep 17 00:00:00 2001 From: Yuri Valentini Date: Thu, 10 Jan 2013 12:23:20 +0100 Subject: [PATCH] Panelolu pin assignment for sanguinololu from http://reprap.org/wiki/Panelolu --- Marlin/pins.h | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/Marlin/pins.h b/Marlin/pins.h index 8e3ed0743..98c423d78 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -418,9 +418,9 @@ #define BTN_EN2 35 #define BTN_ENC 31 //the click - #ifdef G3D_PANEL - #define SDCARDDETECT 49 - #else + #ifdef G3D_PANEL + #define SDCARDDETECT 49 + #else #define SDCARDDETECT -1 // Ramps does not use this port #endif #endif @@ -723,6 +723,39 @@ #define SDSS 24 #endif + #ifdef ULTRA_LCD + #ifdef NEWPANEL + //we have no buzzer installed + #define BEEPER -1 + //LCD Pins + #define LCD_PINS_RS 4 + #define LCD_PINS_ENABLE 17 + #define LCD_PINS_D4 30 + #define LCD_PINS_D5 29 + #define LCD_PINS_D6 28 + #define LCD_PINS_D7 27 + + //The encoder and click button + #define BTN_EN1 11 //must be a hardware interrupt pin + #define BTN_EN2 10 //must be hardware interrupt pin + #define BTN_ENC 16 //the switch + //not connected to a pin + #define SDCARDDETECT -1 + + //from the same bit in the RAMPS Newpanel define + //encoder rotation values + #define encrot0 0 + #define encrot1 2 + #define encrot2 3 + #define encrot3 1 + + #define BLEN_C 2 + #define BLEN_B 1 + #define BLEN_A 0 + + #endif //Newpanel + #endif //Ultipanel + #endif