809 B
809 B
Usage
To use this driver:
-
Add in your
gfxconf.h: a)#define GFX_USE_GDISP GFXON -
To your makefile add the following lines:
include $(GFXLIB)/gfx.mk
include $(GFXLIB)/drivers/gdisp/STM32LTDC/driver.mk
- Add a
board_STM32LTDC.hto you project directory (or board directory) based on one of the templates.
2nd layer
Two things need to happen in order to use the 2nd LTDC layer:
- Set
LTDC_USE_2ND_LAYERtoGFXONin the board file. - Set
GDISP_TOTAL_DISPLAYSto2ingfxconf.h.
The 2nd layer is exposed as a separate display. Use gdispGetDisplay() to retrieve the individual layers.
For more information, see: