Syntax:
GLCDROTATE LANDSCOPE | PORTRAIT_REV | LANDSCAPE_REV | PORTRAIT
Explanation:
Rotate the GLCD display to a relative position.
GLCD rotation needs to be supported by the GLCD chipset. NOT all GLCD chipset support these commands.
The SSD1306 supports LANDSCAPE and LANDSCAPE_REV (180 degrees), in the controller: draw the screen again after a
rotate. See SSD1306 Controllers.
The options are:
LANDSCAPE
PORTRAIT_REV
LANDSCAPE_REV
PORTRAITThe command will rotate the screen and set the following variables using the global variables shown below.
GLCD_WIDTH
GLCD_HEIGHTThe command is supported by the following global constants.
#define LANDSCAPE 1
#define PORTRAIT_REV 2
#define LANDSCAPE_REV 3
#define PORTRAIT 4See Also:
- GLCD Overview — category overview
- GLCDReadByte — related command in the same category
- GLCDCLS — related command in the same category

