From 3cbaad9288fd6fe6d010cc3b4039dbffa863e31b Mon Sep 17 00:00:00 2001 From: Jonathan Bastien-Filiatrault Date: Tue, 6 Nov 2012 20:32:13 -0500 Subject: [PATCH] RepRapDiscount Smart Controller pin definitions. --- Marlin/Configuration.h | 7 ++++++- Marlin/pins.h | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index fbce0eef2..2c6bf3982 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -296,8 +296,13 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store. //#define ULTIPANEL //the ultipanel as on thingiverse +// The RepRapDiscount Smart Controller +// http://reprap.org/wiki/RepRapDiscount_Smart_Controller +//#define REPRAPDISCOUNTSC -#ifdef ULTIMAKERCONTROLLER //automatic expansion + +//automatic expansion +#if defined(ULTIMAKERCONTROLLER) || defined(REPRAPDISCOUNTSC) #define ULTIPANEL #define NEWPANEL #endif diff --git a/Marlin/pins.h b/Marlin/pins.h index fd79dc6e0..f968da807 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -405,6 +405,23 @@ #define encrot2 3 #define encrot3 1 + #ifdef REPRAPDISCOUNTSC + // Override partially the above definitions + #define KILL_PIN 41 + #define LCD_PINS_RS 16 + #define LCD_PINS_ENABLE 17 + #define LCD_PINS_D4 23 + #define LCD_PINS_D5 25 + #define LCD_PINS_D6 27 + #define LCD_PINS_D7 29 + + #define BTN_EN1 31 + #define BTN_EN2 33 + #define BTN_ENC 35 + #define BEEPER 37 + #define SDCARDDETECT 49 + #endif + #else //old style panel with shift register //arduino pin witch triggers an piezzo beeper #define BEEPER 33 No Beeper added