Re: [iPAQ] writing graphical software for iPAQ

From: Antti Silvast <asilvast.a.t.cc.hut.fi>
Date: Tue Oct 17 2000 - 05:59:32 EDT

On Mon, 16 Oct 2000, Erik Mouw wrote:

> It's basically like this (in pseudo code):
> int fd;
> char *base, *pixel;
>
> fd = open("/dev/fb");
> base = mmap(fd);
> pixel = base + (320 * y + x);
> *pixel = 255;
>
> Details differ if you have 8 or 16bpp.

Is this all I need? Do I need to open the screen?
How many colours does the iPAQ have anyway? I've found almost no
information on this, I think I stumbled upon the number 4096 somewhere.

I'll try this out. By the way, I only had the device "/dev/fb0", I
pressume this is the same.

> > Oh yes. Can you pull this off even when the iPAQ is running in X?
> What do you mean?

I mean, since the iPAQ is running in X, will the fb output in its own
window and will the X restore after that?

> friend (try "man ioctl" to learn more about ioctl). The best book about
> UNIX programming in general is in my opinion "Advanced programming in
> the UNIX environment" by W. Richard Stevens. It's expensive, but it's
> worth it.

I'll consider these books, thank you.

 -A
Received on Tue Oct 17 02:54:08 2000

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:43:44 EDT