Gwen Port to Chibios/GFX

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Gwen Port to Chibios/GFX

Postby mobyfab » Mon Sep 10, 2012 10:00 am

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.

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Gwen Port to Chibios/GFX

Postby Tectu » Mon Sep 10, 2012 1:54 pm

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

User avatar
Badger
Posts: 346
Joined: Mon Apr 18, 2011 6:07 pm
Location: Bath, UK
Contact:

Re: Gwen Port to Chibios/GFX

Postby Badger » Mon Sep 10, 2012 2:02 pm

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.

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: Gwen Port to Chibios/GFX

Postby mobyfab » Mon Sep 10, 2012 4:25 pm

I agree with Badger.

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

Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm
Location: India

Re: Gwen Port to Chibios/GFX

Postby Abhishek » Mon Sep 10, 2012 4:34 pm

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

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: Gwen Port to Chibios/GFX

Postby mobyfab » Tue Sep 11, 2012 10:20 pm

Image

8-)

And yes touch is working.

Just need to test buttons and events handling.

Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm
Location: India

Re: Gwen Port to Chibios/GFX

Postby Abhishek » Wed Sep 12, 2012 5:17 am

WoW!

Irresistible. :mrgreen:

Time to get my hands dirty :twisted:

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Gwen Port to Chibios/GFX

Postby Giovanni » Wed Sep 12, 2012 10:06 am

Looks great :)

Giovanni

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Gwen Port to Chibios/GFX

Postby Tectu » Wed Sep 12, 2012 10:53 am

Impressive! Keep going the great work, Mobyfab!


~ Tectu

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: Gwen Port to Chibios/GFX

Postby mobyfab » Wed Sep 12, 2012 9:46 pm

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)


Return to “LCD Driver and Graphic Framework”

Who is online

Users browsing this forum: No registered users and 5 guests