DOGLCD width/height in Conditionals.h
This commit is contained in:
parent
614febaaf3
commit
2690d8568e
@ -155,23 +155,30 @@
|
|||||||
#define NEWPANEL
|
#define NEWPANEL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(DOGLCD) // Change number of lines to match the DOG graphic display
|
||||||
|
#ifndef LCD_WIDTH
|
||||||
|
#define LCD_WIDTH 22
|
||||||
|
#endif
|
||||||
|
#ifndef LCD_HEIGHT
|
||||||
|
#define LCD_HEIGHT 5
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(ULTIPANEL)
|
#if ENABLED(ULTIPANEL)
|
||||||
#define NEWPANEL //enable this if you have a click-encoder panel
|
#define NEWPANEL //enable this if you have a click-encoder panel
|
||||||
#define ULTRA_LCD
|
#define ULTRA_LCD
|
||||||
#if ENABLED(DOGLCD) // Change number of lines to match the DOG graphic display
|
#ifndef LCD_WIDTH
|
||||||
#define LCD_WIDTH 22
|
|
||||||
#define LCD_HEIGHT 5
|
|
||||||
#else
|
|
||||||
#define LCD_WIDTH 20
|
#define LCD_WIDTH 20
|
||||||
|
#endif
|
||||||
|
#ifndef LCD_HEIGHT
|
||||||
#define LCD_HEIGHT 4
|
#define LCD_HEIGHT 4
|
||||||
#endif
|
#endif
|
||||||
#else //no panel but just LCD
|
#else //no panel but just LCD
|
||||||
#if ENABLED(ULTRA_LCD)
|
#if ENABLED(ULTRA_LCD)
|
||||||
#if ENABLED(DOGLCD) // Change number of lines to match the 128x64 graphics display
|
#ifndef LCD_WIDTH
|
||||||
#define LCD_WIDTH 22
|
|
||||||
#define LCD_HEIGHT 5
|
|
||||||
#else
|
|
||||||
#define LCD_WIDTH 16
|
#define LCD_WIDTH 16
|
||||||
|
#endif
|
||||||
|
#ifndef LCD_HEIGHT
|
||||||
#define LCD_HEIGHT 2
|
#define LCD_HEIGHT 2
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user