Quantcast
Channel: Linux Device Hacking - Displays
Viewing all articles
Browse latest Browse all 91

Support for 96x64 displays (1 reply)

$
0
0
Hi all,

I bought (for 2 euros!) a tiny SoccerBall photo frame,
meant to store pictures of your favorite soccer team (?)

The main issue is that display resolution is only 96x64,
while minimum supported resolution is currently 128x128:

Looking for firmware.............: Found (buildwin, 96x64 px).
Looking for Openwin..............: Found.
Looking for LcdIniTbl............: None.
Looking for backlight & contrast.: Found, Found.
Looking for known signatures.....: None.
soccerball.diff

So I poked around a bit and hacked some 96x64 support:

1. added a device "soccerball" in src/lcd: see soccerball.tar.bz2
2. added a 96x64 splash screen in src/res: see splash.96x64.rgb
3. added a 96x64 lcd4linux definition: see dpf_96x64.conf
4. patched menu code to use small font: see soccerball.diff

About point 4, I defined FONT_XMENU to be FONT_SMALL
only when large font gives less than 8 screen lines: current
displays (128x128 onward) should be unaffected.
To make menu show correctly, I had to swap FONT_SMALL
and FONT_SMALL_REVERSE, but I did not understand why!

Hope this makes sense & may be useful to someone,

Ferruccio

Viewing all articles
Browse latest Browse all 91

Trending Articles