This demo should help you to organize your project with awesome PlatformIO IDE.
- It automates installing everything - just open folder with this project in vscode, and agree to install all it offers.
- It contains working LittlevGL demo, runnable on PC (via SDL drivers).
- It has example, how to make multiple build targets. For example:
native
to quickly prototype interfaces on PC- other, to build firmware for bare metal
https://code.visualstudio.com/ - follow instructions there, if you don't have vscode yet.
This drivers required if you plan to use PC builds and run code without hardware (for example, to quickly prototype GUI look).
In linux just run:
sudo apt-get install libsdl2-dev
Or read about other possibilities at https://docs.littlevgl.com/en/html/get-started/pc-simulator.html#install-sdl-2.
Important! Building projects with SDL2 drivers on Windows is not ready. But you still can build MCU targets. If anyone interested to improve - PR welcome.
If you plan to upload firmware & debug hardware, read notes in PlatformIO install docs.
- Clone this repository or download as zip.
- In vscode, open folder via
File
->Open Folder...
menu.- If you do it first time - agree, when it suggests to install PlatformIO plugin, and wait when PlatformIO then install build tools and package dependencies.
- Build via
Terminal
->Run Build Task...
->PlatformIO: Build
Then you may run demo as
./.pio/build/native/program