achimdoebler / UGUI

µGUI - Open Source GUI module for embedded systems
Other
1.2k stars 415 forks source link

Add simulation support on Linux #10

Open Joouis opened 8 years ago

Joouis commented 8 years ago

Hi,

I am plagued by that I have to flash the code into the MCU to check the result of GUI everytime. So is there anyway or will there be a way like simulation on linux to solve this problem? Thanks a lot!

jmoyerman commented 8 years ago

I just came across uGUI while looking for a library to do gui's code and this was on my top priority, as flash/debug cycles waste time. I was thinking of writing a small X11 app that would interface between the user and the uGUI library.

Ive forked the repo and hope to start this week.

mattdf commented 8 years ago

I've added simulation support with SDL2 in an example program here: https://github.com/mattdf/UGUI/tree/master/examples

You can change the simulation resolution by modifying the #defines at the top of the sdl.c file.

jmoyerman commented 8 years ago

I'll take a look at it. I've worked with two examples on my branch with X11. I wanted to sim the gui, then also add some buttons or sliders to control some input into the sim too.