GDISP driver

Locked
petr
Posts: 7
Joined: Mon Jul 30, 2012 8:54 pm

Re: GDISP driver

Post by petr »

Hello Tectu,

you accidentally broke gdisp.h by deleting a few lines while changing the license header:
https://github.com/Tectu/ChibiOS-LCD-Dr ... de/gdisp.h

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

Re: GDISP driver

Post by Abhishek »

Yes, even I have noticed this while compiling, waiting for a fix.
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: GDISP driver

Post by Tectu »

Fix just got pushed. Thank you very much for the saying it, petr.
Can you confirm that everything works now?


~ Tectu
Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm

Re: GDISP driver

Post by Abhishek »

Code compiles now. Created a new branch, to fix the errors.

Will edit here once I send a pull request

EDIT (2016hrs +0530 UTC) : Files ready, let me do some testing
Update: 2125hrs +0530 : Testing, looks good.
Update: 2141hrs +0530 : More Testing

Time for a pull request
inmarket
Posts: 89
Joined: Fri Jul 27, 2012 1:37 pm

Re: GDISP driver

Post by inmarket »

I also sent in a pull request for font fixes. I hadn't noticed you had fixed this while I was coding away.
I also fixed a problem with debugging of the emulation code. It turns out that gdb doesn't (on my compiler) generate debug symbols for code included from header files. I therefore promoted the emulation code and font tables to full c files so they can be debugged if required.
Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm

Re: GDISP driver

Post by Abhishek »

Doesn't matter, inmarket.
Time for a photo shoot.

Say cheese! :)
Attachments
LCD Test Screenshot
LCD Test Screenshot
DSC_0141.jpg (178.91 KiB) Viewed 6307 times
Last edited by Abhishek on Fri Aug 03, 2012 5:43 pm, edited 1 time in total.
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: GDISP driver

Post by Tectu »

Thanks for your fixes, guys!

inmarket, in case of you you have more things to pull request, beside what abhishek did, please make a new pull request and merge to the current marger first.

Anyways, the guy who implements scalable fonts will make me happier than I ever was in my life :D


~ Tectu
Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm

Re: GDISP driver

Post by Abhishek »

Implementing scalable fonts will require drawing the fonts instead of just bitmapping and dumping on screen. We might have to implement libfreetype.

Anyways, in the codespace libfreetype would use, I could throw in a lot more fonts :)

I was thinking, it's possible with our code that we can have both 16-bit and 32-bit fonts coexist. inmarket, what would you say?

Also, we need to update the font generator script.
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: GDISP driver

Post by mobyfab »

scalable fonts is actually really simple.

just draw n times the pixels. ie a 4px square instead of a single pixel to get double the size.

This is the way I had done and it worked pretty well.
inmarket
Posts: 89
Joined: Fri Jul 27, 2012 1:37 pm

Re: GDISP driver

Post by inmarket »

Nice picture!
Bit doubling to create larger fonts is probably not that difficult. I will look at adding it.
Libfreetype could be included as an optional component so you get bitmap fonts in the native driver (if you enable it) AND freetype fonts if you add it. I will look at it.
Locked