Browse Source

Special override of LCD_WIDTH

pull/1/head
Scott Lahteine 7 years ago
parent
commit
704d33c374
  1. 2
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  2. 6
      Marlin/src/inc/Conditionals_LCD.h

2
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h

@ -1837,7 +1837,7 @@
#if ENABLED(ULTIMAKERCONTROLLER) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) || ENABLED(G3D_PANEL) || ENABLED(MKS_MINI_12864)
#define SDSUPPORT // Force SD Card support on for these displays
#elif ENABLED(ULTRA_LCD) && ENABLED(DOGLCD) // No panel, just graphical LCD?
#define LCD_WIDTH 20 // Default is 22. For this Geeetech use 20
#define LCD_WIDTH_OVERRIDE 20 // Default is 22. For this Geeetech use 20
#endif
#endif // CONFIGURATION_H

6
Marlin/src/inc/Conditionals_LCD.h

@ -287,7 +287,11 @@
#if ENABLED(DOGLCD) // Change number of lines to match the DOG graphic display
#ifndef LCD_WIDTH
#define LCD_WIDTH 22
#ifdef LCD_WIDTH_OVERRIDE
#define LCD_WIDTH LCD_WIDTH_OVERRIDE
#else
#define LCD_WIDTH 22
#endif
#endif
#ifndef LCD_HEIGHT
#define LCD_HEIGHT 5

Loading…
Cancel
Save