Преглед на файлове

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,9 +316,9 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
316 316
 // The RepRapDiscount Smart Controller (white PCB)
317 317
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
318 318
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
319
-
320
-// The GADGETS3D G3D LCD/SD Controller (blue PCB)
321
-// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
319
+
320
+// The GADGETS3D G3D LCD/SD Controller (blue PCB)
321
+// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
322 322
 //#define G3D_PANEL
323 323
 
324 324
 //automatic expansion
@@ -351,6 +351,15 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
351 351
   #endif
352 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 363
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
355 364
 //#define FAST_PWM_FAN
356 365
 

Loading…
Отказ
Запис