# lv_sim_vscode_sdl-7.11.0 **Repository Path**: lingcb/lv_sim_vscode_sdl-7.11.0 ## Basic Information - **Project Name**: lv_sim_vscode_sdl-7.11.0 - **Description**: 这是一个lvgl在vscode上的lvgl模拟库的镜像,建这个项目的原因是,github在国内卡的严重,网上介绍的命令行安装的方式几乎失效,同时,网上的教程一般时对于lvgl-7.11.0这个版本的,git clone 下来的lvgl版本一般时最新的lvgl-8.0,而且,lv_examples已经时历史版本,git clone下来的是,lv_demos. 这个项目,git 下来就可以直接使用了 - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-10-15 - **Last Updated**: 2024-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Simulator project for LVGL embedded GUI Library The [LVGL](https://github.com/lvgl/lvgl) is written mainly for microcontrollers and embedded systems however you can run the library **on your PC** as well without any embedded hardware. The code written on PC can be simply copied when your are using an embedded system. Using a PC simulator instead of an embedded hardware has several advantages: * **Costs $0** because you you don't have to buy or design PCB * **Fast** because you don't have to design and manufacture PCB * **Collaborative** because any number of developers can work in the same environment * **Developer friendly** because much easier and faster to debug on PC ## Requirements This project is configured for VSCode and only tested on Linux, although this may work on OSx or WSL. It requires a working version of GCC, GDB and make in your path. To allow debugging inside VSCode you will also require a GDB [extension](https://marketplace.visualstudio.com/items?itemName=webfreak.debug) or other suitable debugger. * **SDL** a low level driver library to use graphics, handle mouse, keyboard etc. ## Usage ### Get the PC project Clone the PC project and the related sub modules: ``` git clone --recursive https://github.com/lvgl/lv_sim_vscode_sdl ``` ### Install SDL You can download SDL from https://www.libsdl.org/ On on Linux you can install it via terminal: ``` sudo apt-get update && sudo apt-get install -y build-essential libsdl2-dev ``` ### Setup To allow custom UI code an `lv_conf.h` file placed at `ui/simulator/inc` will automatically override this projects lv_conf.h file. By default code under `ui` is ignored so you can reuse this repository for multiple projects. You will need to place a call from `main.c` to your UI's entry function. To build and debug, press F5. You should now have your UI displayed in a new window and can access all the debug features of VSCode through GDB. To allow temporary modification between simulator and device code, a SIMULATOR=1 define is added globally.