-
Notifications
You must be signed in to change notification settings - Fork 1
Display and Windows
void displayOn(boolean on)
- on: TRUE: switches display driver on
- on: FALSE: switches display driver off
void backlight(boolean on)
- on: enables/disables the backlight
void brightness(uint8_t val)
- val: sets the brightness level when the backlight is on. Can be changed while the backlight is on to dim the backlight. (0 ... 255)
void width(bool absolute)
void height(bool absolute)
- absolute: TRUE: returns the physical dimension of the display
- absolute: FALSE: returns the rotation dependant dimension
void setRotation(uint8_t rotation)
- rotation: 0: default
- rotation: 1: 90 degrees rotated counter clockwise
- rotation: 2: upside down
- rotation: 3: 90 degrees rotated clockwise
uint8_t getRotation()
Return value: see setRotation()
Sets the active window to the complete screen
void XGLCD::setActiveWindow(void)
Sets the active window between two coordinate pairs
void setActiveWindow(int16_t XL,int16_t XR ,int16_t YT ,int16_t YB)
void getActiveWindow(int16_t &XL,int16_t &XR ,int16_t &YT ,int16_t &YB)
- XL: horizontal left border
- XR: horizontal right border
- YT: vertical top border
- YB: vertical bottom border
Clears independent of the selected LCD resolution or color depth the complete video memory. The video memory might contain several video buffers, all of them are cleared.
void clearMemory(bool stop)
- stop: FALSE (TRUE not allowed)
void clearActiveWindow(bool full)
- full: FALSE: clear current window
- full: TRUE: clear full window
void fillWindow(uint16_t color)
Fill the complete active window with 'color'.
void clearScreen(uint16_t color)
Fill the complete visible screen with 'color'.
void sleep(boolean sleep)
- sleep: TRUE: switch the LCD in sleep mode & switch off the backlight
- sleep: FALSE: enable the LCD and switch the backlight on
- XGLCD Library Reference
- [Display and Windows](https://github.com/xgraph/xg8800/wiki/Display and Windows)
- [Graphic Primitives](https://github.com/xgraph/xg8800/wiki/Graphic Primitives)
- [Text and Fonts](https://github.com/xgraph/xg8800/wiki/Text and Fonts)
- Colors
- Touchscreen
- Scrolling
- Layers
- [Block Transfer Engine](https://github.com/xgraph/xg8800/wiki/Block Transfer Engine)