Display configuration.
Display configuration.
Display configuration depends on the LCD hardware and user configuration.
The following definitions are used to configure display orientation:
- GLCD_MIRROR_X: Mirror X axis = 1:yes, 0:no
- GLCD_MIRROR_Y: Mirror Y axis = 1:yes, 0:no
- GLCD_SWAP_XY: Swap X&Y axis = 1:yes, 0:no
The following definition are used to describe LCD physical information:
- GLCD_SIZE_X: Screen size X (in pixels)
- GLCD_SIZE_Y: Screen size Y (in pixels)
- GLCD_BPP: Bits per pixel
The following definition names are predefined (derived from the above definitions):
- GLCD_WIDTH: Screen width (in pixels)
- GLCD_HEIGHT: Screen height (in pixels)
Example: 240*320 16bpp
#define GLCD_MIRROR_X 0
#define GLCD_MIRROR_Y 0
#define GLCD_SWAP_XY 1
#define GLCD_SIZE_X 240
#define GLCD_SIZE_Y 320
#define GLCD_BPP 16
#if (GLCD_SWAP_XY)
#define GLCD_WIDTH GLCD_SIZE_Y
#define GLCD_HEIGHT GLCD_SIZE_X
#else
#define GLCD_WIDTH GLCD_SIZE_X
#define GLCD_HEIGHT GLCD_SIZE_Y
#endif