Thursday, July 17, 2008

Nokia 6100 Test utility

I haven't quite gotten to the framebuffer driver part yet, but in the meantime I came up with this user mode application that displays some graphics and a bitmap on the Nokia lcd screen.
Basically it is the combination of the two separate test apps (lcdtest & lcdimg) included in the driver, described in the previous post.
The main difference is that this program doesn't require any drivers to access the screen, it initializes and uses the pxa255 ssp controller to communicate with the screen.
By default it assumes the screen uses an Epson controller. To use with Phillips controllers, only a simple change is required: in the main() function, the first parameter of the lcdInit() call has to be changed from 1 to 0.
The program draws some simple graphics : lines, circles, text. And it also loads and display a bitmap from raw image file. Therefore it is important to transfer the cat.rgb file to the target, together with the executable.

Download : nokiatest-0.01.tar.gz

It can be seen in action below :

Now it's really time to get that framebuffer driver going ...