瀏覽代碼

Added RepRapDiscount FULL GRAPHIC Smart Controller

MaikStohn 11 年之前
父節點
當前提交
13596e8722
共有 2 個檔案被更改,包括 17 行新增0 行删除
  1. 12
    0
      Marlin/Configuration.h
  2. 5
    0
      Marlin/dogm_lcd_implementation.h

+ 12
- 0
Marlin/Configuration.h 查看文件

@@ -331,7 +331,19 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
331 331
 // http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
332 332
 //#define G3D_PANEL
333 333
 
334
+// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)
335
+// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
336
+//
337
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
338
+//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
339
+
334 340
 //automatic expansion
341
+#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
342
+ #define DOGLCD
343
+ #define U8GLIB_ST7920
344
+ #define REPRAP_DISCOUNT_SMART_CONTROLLER
345
+#endif
346
+
335 347
 #if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
336 348
  #define ULTIPANEL
337 349
  #define NEWPANEL

+ 5
- 0
Marlin/dogm_lcd_implementation.h 查看文件

@@ -63,7 +63,12 @@
63 63
 
64 64
 
65 65
 // LCD selection
66
+#ifdef U8GLIB_ST7920
67
+// SPI Com: SCK = en = (D4), MOSI = rw = (RS), CS = di = (ENABLE)
68
+U8GLIB_ST7920_128X64_1X u8g(LCD_PINS_D4, LCD_PINS_ENABLE, LCD_PINS_RS);
69
+#else
66 70
 U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);	// HW-SPI Com: CS, A0
71
+#endif
67 72
 
68 73
 static void lcd_implementation_init()
69 74
 {

Loading…
取消
儲存