Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 3.01 KB

readme.md

File metadata and controls

59 lines (37 loc) · 3.01 KB

LVGL simulator for windows and vscode

Running Simulator

The LVGL is written mainly for microcontrollers and embedded systems however you can run the library on your PC as well without any embedded hardware. In this repository, the simulator for LVGL8.0 has been prepared for windows and VSCode based on the original repository which was ready for Linux.

Requirements

This project is configured for windows and VSCode. You need to install the following tools to compile and debug it:


Usage

Clone the project

Clone the project on your PC by the following command. Just copy the entire command and paste it inside a CMD (command prompt) :)

Note: make sure to paste it inside a CMD terminal, not inside a git bash terminal

git clone --recursive https://github.com/niaraki/lvgl8.0_simulator_win_vscode.git lvgl_simulator
cd .\lvgl_simulator\source
code .

Build the project

Open the lvgl_simulator\source directory inside the vscode and press ctrl+shift+b and select Build from the opened menu. The build process is started and the final program is created inside the "source\build\bin" with the name "demo.exe".

Note: sdl2.dll should be exist beside of "demo.exe" to execute without any Error.

Execution

Press ctrl+shift+b in VSCode and select Execute from the opened menu to execute the simulator.

Debug

Press ctrl+shift+d in VSCode and click on the "Run and Debug" button or press F5 to start the debuging session.

Configuration

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.