浏览代码

Added Config variables for activating I2C LCDs and setting type and address

Bob Clough 12 年前
父节点
当前提交
06272f463d
共有 1 个文件被更改,包括 12 次插入3 次删除
  1. 12
    3
      Marlin/Configuration.h

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

316
 // The RepRapDiscount Smart Controller (white PCB)
316
 // The RepRapDiscount Smart Controller (white PCB)
317
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
317
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
318
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
318
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
319
-
319
+
320
-// The GADGETS3D G3D LCD/SD Controller (blue PCB)
320
+// The GADGETS3D G3D LCD/SD Controller (blue PCB)
321
-// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
321
+// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
322
 //#define G3D_PANEL
322
 //#define G3D_PANEL
323
 
323
 
324
 //automatic expansion
324
 //automatic expansion
351
   #endif
351
   #endif
352
 #endif
352
 #endif
353
 
353
 
354
+//The LCD is attached via an I2C port expander.
355
+//#define LCD_I2C
356
+#ifdef LCD_I2C
357
+  // Port Expander Type - PCF8574 or MCP23008
358
+  #define LCD_I2C_TYPE PCF8574
359
+  // I2C Address of the port expander
360
+  #define LCD_I2C_ADDRESS 0x20
361
+#endif
362
+
354
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
363
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
355
 //#define FAST_PWM_FAN
364
 //#define FAST_PWM_FAN
356
 
365
 

正在加载...
取消
保存