Skip to content

PlatformIO project example for LittlevGL

License

Notifications You must be signed in to change notification settings

paulpv/lv_platformio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run LittlevGL via PlatformIO

This demo should help you to organize your project with awesome PlatformIO IDE.

  1. It automates installing everything - just open folder with this project in vscode, and agree to install all it offers.
  2. It contains working LittlevGL demo, runnable on PC (via SDL drivers).
  3. 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

How to install & use demo

Install vscode

https://code.visualstudio.com/ - follow instructions there, if you don't have vscode yet.

Install SDL drivers

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.

Install flasher drivers (optional)

If you plan to upload firmware & debug hardware, read notes in PlatformIO install docs.

Build & run demo

  1. Clone this repository or download as zip.
  2. 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.
  3. Build via Terminal -> Run Build Task... -> PlatformIO: Build

Then you may run demo as

./.pio/build/native/program

About

PlatformIO project example for LittlevGL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%