Compare commits
No commits in common. "cbf9c22adf27103dea9dd425c3eff2b769fa8b74" and "0dac6b4d0f84fd8cb4fc86f3570cf5cf49fb301c" have entirely different histories.
cbf9c22adf
...
0dac6b4d0f
3 changed files with 13 additions and 12 deletions
|
@ -13,6 +13,9 @@ To use this driver:
|
||||||
3. Add a `board_STM32LTDC.h` to you project directory (or board directory)
|
3. Add a `board_STM32LTDC.h` to you project directory (or board directory)
|
||||||
based on one of the templates.
|
based on one of the templates.
|
||||||
|
|
||||||
|
# Limitations
|
||||||
|
Currently, both `gOrientationPortrait` and `gOrientationLandscape` are not supported by this driver.
|
||||||
|
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
Configuration options available in `gfxconf.h`:
|
Configuration options available in `gfxconf.h`:
|
||||||
|
@ -25,7 +28,6 @@ Configuration options available in `gfxconf.h`:
|
||||||
| `STM32LTDC_USE_DOUBLEBUFFERING` | `GFXOFF` | Whether to use double buffering. See the corresponding section below. |
|
| `STM32LTDC_USE_DOUBLEBUFFERING` | `GFXOFF` | Whether to use double buffering. See the corresponding section below. |
|
||||||
| `STM32LTDC_USE_RGB565` | `GFXOFF` | Whether to use RGB565 instead of RGB888. |
|
| `STM32LTDC_USE_RGB565` | `GFXOFF` | Whether to use RGB565 instead of RGB888. |
|
||||||
|
|
||||||
|
|
||||||
# 2nd layer
|
# 2nd layer
|
||||||
To use the 2nd LTDC layer:
|
To use the 2nd LTDC layer:
|
||||||
- set `STM32LTDC_USE_LAYER2` to `GFXON` in `gfxconf.h`.
|
- set `STM32LTDC_USE_LAYER2` to `GFXON` in `gfxconf.h`.
|
||||||
|
@ -37,7 +39,6 @@ For more information, see:
|
||||||
- https://wiki.ugfx.io/index.php/Multiple_displays#Example_-_Same_controller
|
- https://wiki.ugfx.io/index.php/Multiple_displays#Example_-_Same_controller
|
||||||
- https://wiki.ugfx.io/index.php/Multiple_displays#Access_the_displays
|
- https://wiki.ugfx.io/index.php/Multiple_displays#Access_the_displays
|
||||||
|
|
||||||
|
|
||||||
# Double buffering
|
# Double buffering
|
||||||
To use double buffering:
|
To use double buffering:
|
||||||
- set `STM32LTDC_USE_DOUBLEBUFFERING` to `GFXON` in `gfxconf.h`.
|
- set `STM32LTDC_USE_DOUBLEBUFFERING` to `GFXON` in `gfxconf.h`.
|
||||||
|
|
|
@ -569,9 +569,9 @@ void _gdispInit(void)
|
||||||
#if defined(GDISP_DRIVER_LIST)
|
#if defined(GDISP_DRIVER_LIST)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
typedef const GDISPVMT GDISPVMTLIST[1];
|
typedef const GDISPVMT const GDISPVMTLIST[1];
|
||||||
|
|
||||||
static const GDISPVMT* dclist[] = { GDISP_DRIVER_LIST };
|
static const GDISPVMT * const dclist[] = {GDISP_DRIVER_LIST};
|
||||||
|
|
||||||
for(i = 0; i < sizeof(dclist)/sizeof(dclist[0]); i++) {
|
for(i = 0; i < sizeof(dclist)/sizeof(dclist[0]); i++) {
|
||||||
if (!(dclist[i]->d.flags & GDISP_VFLG_DYNAMICONLY))
|
if (!(dclist[i]->d.flags & GDISP_VFLG_DYNAMICONLY))
|
||||||
|
|
Loading…
Add table
Reference in a new issue