|
|
@ -1630,37 +1630,25 @@
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Get LCD character width/height, which may be overridden by pins, configs, etc.
|
|
|
|
// Get LCD character width/height, which may be overridden by pins, configs, etc.
|
|
|
|
#if HAS_GRAPHICAL_LCD
|
|
|
|
#ifndef LCD_WIDTH
|
|
|
|
#ifndef LCD_WIDTH
|
|
|
|
#if ENABLED(LIGHTWEIGHT_UI)
|
|
|
|
#ifdef LCD_WIDTH_OVERRIDE
|
|
|
|
#define LCD_WIDTH 16
|
|
|
|
#define LCD_WIDTH LCD_WIDTH_OVERRIDE
|
|
|
|
#elif HAS_GRAPHICAL_LCD
|
|
|
|
#elif ENABLED(LIGHTWEIGHT_UI)
|
|
|
|
#define LCD_WIDTH 22
|
|
|
|
#define LCD_WIDTH 16
|
|
|
|
#elif ENABLED(ULTIPANEL)
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define LCD_WIDTH 22
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LCD_HEIGHT
|
|
|
|
|
|
|
|
#ifdef LCD_HEIGHT_OVERRIDE
|
|
|
|
|
|
|
|
#define LCD_HEIGHT LCD_HEIGHT_OVERRIDE
|
|
|
|
|
|
|
|
#elif ENABLED(LIGHTWEIGHT_UI)
|
|
|
|
|
|
|
|
#define LCD_HEIGHT 4
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define LCD_HEIGHT 5
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif ENABLED(ULTIPANEL)
|
|
|
|
|
|
|
|
#ifndef LCD_WIDTH
|
|
|
|
|
|
|
|
#define LCD_WIDTH 20
|
|
|
|
#define LCD_WIDTH 20
|
|
|
|
#endif
|
|
|
|
#elif HAS_SPI_LCD
|
|
|
|
#ifndef LCD_HEIGHT
|
|
|
|
|
|
|
|
#define LCD_HEIGHT 4
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif HAS_SPI_LCD
|
|
|
|
|
|
|
|
#ifndef LCD_WIDTH
|
|
|
|
|
|
|
|
#define LCD_WIDTH 16
|
|
|
|
#define LCD_WIDTH 16
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifndef LCD_HEIGHT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LCD_HEIGHT
|
|
|
|
|
|
|
|
#if ENABLED(LIGHTWEIGHT_UI)
|
|
|
|
|
|
|
|
#define LCD_HEIGHT 4
|
|
|
|
|
|
|
|
#elif HAS_GRAPHICAL_LCD
|
|
|
|
|
|
|
|
#define LCD_HEIGHT 5
|
|
|
|
|
|
|
|
#elif ENABLED(ULTIPANEL)
|
|
|
|
|
|
|
|
#define LCD_HEIGHT 4
|
|
|
|
|
|
|
|
#elif HAS_SPI_LCD
|
|
|
|
#define LCD_HEIGHT 2
|
|
|
|
#define LCD_HEIGHT 2
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|