![ST STM32CubeH7 Скачать руководство пользователя страница 27](http://html1.mh-extra.com/html/st/stm32cubeh7/stm32cubeh7_user-manual_1356075027.webp)
UM2222 Rev 2
27/76
UM2222
Demonstration customization and configuration
75
5
Demonstration customization and configuration
5.1 LCD
configuration
The LCD is configured through the
LCDConf.c
file. Amongst the several parameters that
can be set in this file, some are detailed below:
•
Multiple layers:
The number of layers used is defined using GUI_NUM_LAYERS. Its value must not
exceed the one defined into
GUIConf.h
(the later represents the maximum number of
available layers supported when the STemWin binary is generated).
•
Multiple buffering:
If NUM_BUFFERS is set to a value "n" greater than 1, it means that "n" frame buffers
are used for drawing operation (see section
Error! Reference source not found
for
the impact of multiple buffering on performance).
•
Virtual screens:
If the display area is greater than the physical size of the LCD, NUM_VSCREENS must
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 the frame buffer is defined through
LCD_LAYERX_FRAME_BUFFER.
Figure 15. LCDConf.c location
5.2 Layer
management
In the demonstration package, GUI_NUM_LAYERS is set to 2 (both layers are used):
•
Layer 0 is used for the main desktop display.
•
Layer 1 is used for video player module playback.
Such display separation helps to lighten the CPU usage during the refresh tasks.
06Y9