From 13596e872238ba7ab2f072df2b056c2e6940bda6 Mon Sep 17 00:00:00 2001 From: MaikStohn Date: Tue, 16 Apr 2013 14:21:39 +0200 Subject: [PATCH] Added RepRapDiscount FULL GRAPHIC Smart Controller --- Marlin/Configuration.h | 12 ++++++++++++ Marlin/dogm_lcd_implementation.h | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index dd9975734b..12814fbe30 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -331,7 +331,19 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th // http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel //#define G3D_PANEL +// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB) +// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller +// +// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib +//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER + //automatic expansion +#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) + #define DOGLCD + #define U8GLIB_ST7920 + #define REPRAP_DISCOUNT_SMART_CONTROLLER +#endif + #if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL) #define ULTIPANEL #define NEWPANEL diff --git a/Marlin/dogm_lcd_implementation.h b/Marlin/dogm_lcd_implementation.h index cf6532f880..48bd4ba0b8 100644 --- a/Marlin/dogm_lcd_implementation.h +++ b/Marlin/dogm_lcd_implementation.h @@ -63,7 +63,12 @@ // LCD selection +#ifdef U8GLIB_ST7920 +// SPI Com: SCK = en = (D4), MOSI = rw = (RS), CS = di = (ENABLE) +U8GLIB_ST7920_128X64_1X u8g(LCD_PINS_D4, LCD_PINS_ENABLE, LCD_PINS_RS); +#else U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0); // HW-SPI Com: CS, A0 +#endif static void lcd_implementation_init() {