The Littlev Graphic Library is written mainly for microcontrollers and embedded systems however you can run the library on your PC too 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 got several advantages:
- Costs $0 because you you don't have to buy design PCB
- Fast because you don't have to design an manufacture PCB
- Collaborative because any number of developers can work without hardware requirements
- Developer friendly because much easier and faster to debug on PC
- The PC simulator is cross platform so Windows, Linux and OSX is suitable as well
- SDL a low level driver library to use graphics, audio, handle mouse, keyboard etc.
- This project is configured for Eclipse CDT IDE
Clone the PC project and the related sub modules:
git clone https://github.com/littlevgl/proj_pc.git cd proj_pc git submodule update --init
or download it as zip here.
You can download SDL from https://www.libsdl.org/
On Linux you can install it via terminal:
- Find the current version of SDL2:
apt-cache search libsdl2
(e.g. libsdl2-2.0-0) - Install SDL2:
sudo apt-get install libsdl2-2.0-0
(replace with the found version) - Install SDL2 development package:
sudo apt-get install libsdl2-dev
- If build essentials are not installed yet:
sudo apt-get install build-essential
Download and install Eclipse CDT from http://www.eclipse.org/cdt/
- Open Eclipse CDT
- Click File->Import and choose General->Existing project into Workspace
- Browse the root directory of the project and click Finish
- Build your project and run it
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request!
If you find an issue, please report it via GitHub!
If you are pleased with the graphics library and found it useful pleas support its further development: