second lcd working

0 views
Skip to first unread message

Mechiel Lukkien

unread,
Apr 19, 2008, 9:36:59 AM4/19/08
to infer...@googlegroups.com
hi all,

i just committed some code to enable the second (upper) lcd display.
this just in from the commit message:

configure second lcd screen, and the inferno logo on it.

the second screen is also a frame-buffer like device: 16-bit pixels
(5 bits for each color of rgb, and a transparency (which we don't
use). the framebuffer starts at 0x6200000. it is 256x256 pixels.
the screen is 192 rows high, so we don't use the lower rows (the
visible part can be changed by setting a register).

the hard part was finding the erroneous defines for the bits that
enable power on the 2d subsystem for the second sceren, in lcdreg.h.

right now, the inferno logo is built-in, in file logo.c. we probably
won't need it for long, as we want to display something more useful
on that secondary screen. :) i tried reading the image file from
#/, but that failed with locking (i tried it with k(open|read|etc),
before schedinit(), that's probably not allowed). the image file
is currently only ~8kb, due to using a simple run-length encoding
scheme (1 byte count, 2 bytes pixel).


i also uploaded a new kernel:

http://inferno-ds.googlecode.com/files/ids-r98.nds

it has the touch calibration patch and of course the second screen. it
also has wm/keyboard and a few more programs than the previous kernel i
uploaded. not all programs in the menu work though, so don't get too
excited just yet. :)

i also made a photo of my nds running this kernel, it is available at:

http://inferno-ds.googlecode.com/files/infnds-logo-small.jpg

note: firefox wants me to download the image above. this probably means the
content-type isn't set to something useful by google, so i made it (less
permanently) available at my own webserver too, which browsers should
just display:

http://www.ueber.net/who/mjl/tmp/infnds-logo-small.jpg

best regards,
mechiel

Caerwyn Jones

unread,
Apr 19, 2008, 11:02:45 AM4/19/08
to infer...@googlegroups.com
nice pic. that's now my desktop background.

Salva Peiró

unread,
May 6, 2008, 6:15:51 AM5/6/08
to infer...@googlegroups.com
On Sat, Apr 19, 2008 at 5:02 PM, Caerwyn Jones <caer...@gmail.com> wrote:
>
> nice pic. that's now my desktop background.
>

yes, it looks so good that now it's on the main inferno-ds project page:
http://inferno-ds.googlecode.com/, take a look and see it by yourself.

--
salva

Salva Peiró

unread,
May 6, 2008, 8:14:33 AM5/6/08
to infer...@googlegroups.com

just an explanation of the above:
the idea is to improve the first impression of people who reach the
project site,
we're keen to know about feedback: improvements & suggestions are welcome

--
salva

Reply all
Reply to author
Forward
0 new messages