.. | ||
board_STM32LTDC_template.h | ||
driver.mk | ||
gdisp_lld_config.h | ||
gdisp_lld_STM32LTDC.c | ||
readme.md | ||
stm32_dma2d.h | ||
stm32_ltdc.h |
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.h
to 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_LAYER
toGFXON
in the board file. - Set
GDISP_TOTAL_DISPLAYS
to2
ingfxconf.h
.
The 2nd layer is exposed as a separate display. Use gdispGetDisplay()
to retrieve the individual layers.
For more information, see: