Page 1 of 3

Gwen Port to Chibios/GFX

Posted: Mon Sep 10, 2012 10:00 am
by mobyfab
Hey,

I am currently porting Gwen to Chibios/GFX.

You can find the code here: https://github.com/mobyfab/ChibiOS-Gwen

I do have a working, yet limited, demo on the examples repo.
I will post the progress and changes here.

Right now I am mostly optimizing the code as it is not really meant for embedded devices.
Simples things such as const-correctness have not been done everywhere on the original code.

I am making it modular so that you only pay for what you use.
I made unicode support and animations optional, which saves 155K of code(!)

Here is the current size of the demo binary: Flash: 116912 RAM: 13588
(The first working version of the port was over 300K of code.)

Also I am making lightweight skins for faster rendering.
I will post a video as soon as I have something nice to show.

Feel free to participate in testing, commenting or developping :)

Thanks.

Re: Gwen Port to Chibios/GFX

Posted: Mon Sep 10, 2012 1:54 pm
by Tectu
This is very nice, thank you very much for your work, Mobyfab!

Whenever I'll find some time in my life (so yes, never, you're right), I'll try to port it directly into the library. Maybe this helps some users to keep stuff simple.
I guess you are not interested in keeping everything inside the ChibiOS/GFX repo, right?


~ Tectu

Re: Gwen Port to Chibios/GFX

Posted: Mon Sep 10, 2012 2:02 pm
by Badger
Tectu wrote:Whenever I'll find some time in my life (so yes, never, you're right), I'll try to port it directly into the library. Maybe this helps some users to keep stuff simple.


I don't think this is a good idea. Best to keep things separate and simple, but provide well documented means of using the two together. You could always have an upstream 'super' repo which has the two projects as submodules to make it easy.

Re: Gwen Port to Chibios/GFX

Posted: Mon Sep 10, 2012 4:25 pm
by mobyfab
I agree with Badger.

Not everyone needs a full GUI, it's best to keep things modular.

Re: Gwen Port to Chibios/GFX

Posted: Mon Sep 10, 2012 4:34 pm
by Abhishek
Gwen is certainly a nice idea for a GUI system. I haven't tried it out yet but then this looks to be a good solution for a GUI abstraction.

Keep it going mobyfab, We'll contribute as and when required. Hope the code size comes down further in the months to come without compromise of functionality.

Cheers
Abhishek

Re: Gwen Port to Chibios/GFX

Posted: Tue Sep 11, 2012 10:20 pm
by mobyfab
Image

8-)

And yes touch is working.

Just need to test buttons and events handling.

Re: Gwen Port to Chibios/GFX

Posted: Wed Sep 12, 2012 5:17 am
by Abhishek
WoW!

Irresistible. :mrgreen:

Time to get my hands dirty :twisted:

Re: Gwen Port to Chibios/GFX

Posted: Wed Sep 12, 2012 10:06 am
by Giovanni
Looks great :)

Giovanni

Re: Gwen Port to Chibios/GFX

Posted: Wed Sep 12, 2012 10:53 am
by Tectu
Impressive! Keep going the great work, Mobyfab!


~ Tectu

Re: Gwen Port to Chibios/GFX

Posted: Wed Sep 12, 2012 9:46 pm
by mobyfab
http://www.youtube.com/watch?v=iICqELELbL0

Now this is getting interesting.

I'll have to test all widgets. For some reason the slider was crashing so I had to disable some code. (the code that moves the slider button when you keep pressed on it, that's why it lags on the video)