Demonstration customization and configuration
UM1743
40/111
DocID026161 Rev 4
5
Demonstration customization and configuration
5.1 LCD
configuration
The LCD is configured through the LCDConf.c file, see
. The main configuration
items are listed below:
•
Multiple layers:
–
The number of layers to be used defined using GUI_NUM_LAYERS.
•
Multiple buffering:
–
If NUM_BUFFERS is set to a value "n" greater than 1, it means that "n" frame
buffers will be used for drawing operation (see section 7.1 for impact of multiple
buffering on performance).
•
Virtual screens:
–
If the display area is greater than the physical size of the LCD, NUM_VSCREENS
should be set to a value greater than 1. Note that virtual screens and multi buffers
are not allowed together.
•
Frame buffers locations:
The physical location of frame buffer is defined through LCD_LAYERX_FRAME_BUFFER.
Figure 32. LCDConf location
5.2 Layers
management
In the STM32CubeF4 demonstration package with the STM324x9I-EVAL, Discovery Kit,
STM32F479I-EVAL and STM32F469I-DISCO, GUI_NUM_LAYERS is set to 2 (both layers
are used):
•
"Layer 0 is dedicated to background display
•
"Layer 1 is used for the main desktop display
Dedicated layers usage will lighten the CPU load during the refresh tasks.