Display controller and touchpad driver to can be directly used with LVGL. More...
Display controller and touchpad driver to can be directly used with LVGL.
To change the size of the screen
SDL_VER_RES can be changed via
CFLAGS or in
For small screen a zoom factor can be applied through
SDL_ZOOM=2 will apply a x2 zoom to the display.
To run lvgl inside a simulator (native), SDL2 is required. Install instructions can be found at https://docs.lvgl.io/latest/en/html/get-started/pc-simulator.html#install-sdl-2, note that the 32bit version is needed.
On debian/ubuntu this could be as simple as installing the
Using SDL2 requires more stack so in case you are using it add
to your makefile. 48kB is enough for the test, other uses may need more or may need this to be applied to other threads using
|LVGL Drivers SDL2 configuration headers. More...|
|LVGL SDL2 display horizontal resolution. More...|
|LVGL SDL2 display vertical resolution. More...|
|LVGL display horizontal resolution. More...|
|LVGL display vertical resolution. More...|
|Enable Scale window by this factor (useful when simulating small screens) More...|
|Used to test true double buffering with only address changing. More...|
|Open two windows to test multi display support. More...|
|#define LV_HOR_RES SDL_HOR_RES|
|#define LV_VER_RES SDL_VER_RES|
|#define SDL_DOUBLE_BUFFERED 0|
|#define SDL_DUAL_DISPLAY 0|
|#define SDL_HOR_RES 320|
|#define SDL_VER_RES 240|
|#define SDL_ZOOM 1|