Просмотр исходного кода

Fix Configuration.h file to not define LCDs be default.

Also fix compile time check in Marlin.pde
Robert F-C 11 лет назад
Родитель
Сommit
839bef6d5d
2 измененных файлов: 6 добавлений и 4 удалений
  1. 5
    2
      Marlin/Configuration.h
  2. 1
    2
      Marlin/Marlin.pde

+ 5
- 2
Marlin/Configuration.h Просмотреть файл

@@ -320,7 +320,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
320 320
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
321 321
 
322 322
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
323
-#define ULTIPANEL  //the ultipanel as on thingiverse
323
+//#define ULTIPANEL  //the ultipanel as on thingiverse
324 324
 
325 325
 // The RepRapDiscount Smart Controller (white PCB)
326 326
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
@@ -338,11 +338,12 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
338 338
 
339 339
 // I2C PANELS
340 340
 
341
-#define LCD_I2C_SAINSMART_YWROBOT
341
+//#define LCD_I2C_SAINSMART_YWROBOT
342 342
 #ifdef LCD_I2C_SAINSMART_YWROBOT
343 343
   // This uses the LiquidCrystal_I2C library ( https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home )
344 344
   // Make sure it is placed in the Arduino libraries directory.
345 345
   #define LCD_I2C_TYPE_PCF8575
346
+  #define LCD_I2C
346 347
   #define ULTIPANEL
347 348
   #define NEWPANEL
348 349
   #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
@@ -354,6 +355,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
354 355
   // This uses the LiquidTWI2 library ( https://github.com/lincomatic/LiquidTWI2 ).
355 356
   // Make sure it is placed in the Arduino libraries directory.
356 357
   #define LCD_I2C_TYPE_MCP23017
358
+  #define LCD_I2C
357 359
   #define ULTIPANEL
358 360
   #define NEWPANEL
359 361
   #define LCD_I2C_ADDRESS 0x20
@@ -367,6 +369,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
367 369
   // This uses the LiquidTWI2 library (https://github.com/lincomatic/LiquidTWI2).
368 370
   // Make sure it is placed in the Arduino libraries directory.
369 371
   #define LCD_I2C_TYPE_MCP23017
372
+  #define LCD_I2C
370 373
   #define ULTIPANEL
371 374
   #define NEWPANEL
372 375
   #define LCD_I2C_ADDRESS 0x20

+ 1
- 2
Marlin/Marlin.pde Просмотреть файл

@@ -39,8 +39,7 @@
39 39
     #if defined(LCD_I2C_TYPE_PCF8575)
40 40
       #include <LiquidCrystal_I2C.h>
41 41
     #elif defined(LCD_I2C_TYPE_MCP23017)
42
-      #ifdef PANELOLU2
43
-        #undef PANELOLU2
42
+      #ifdef LCD_I2C_PANELOLU2
44 43
         #include <LiquidTWI2.h>
45 44
         #ifndef PANELOLU2
46 45
           #error You must uncomment #define PANELOLU2 in LiquidTWI2.h for LiquidTWI2.cpp to compile correctly

Загрузка…
Отмена
Сохранить