Re: Ncurses and HD44780 LCD
- From: jj@xxxxxxxxxxxxxx (Jim Jackson)
- Date: Tue, 8 May 2007 13:10:34 +0000 (UTC)
CptDondo <yan@xxxxxxxxxxxxxxxx> wrote:
okalex wrote:
Hey everyone,
I'm working on a project with a 4x20 HD44780-compatible character LCD
which is used to display a menuing system. I'd like to use Ncurses to
handle the display output to this LCD, but I'm not sure if this is
possible. Can anyone provide some tips on how to do this? What
functionality does the driver need to provide? Is a simple char
device sufficient? Do I need to write a TTY driver for it? How do I
redirect the Ncurses output to the LCD device instead of stdout? Any
advice is greatly appreciated.
Here's some code that might help. It's a HD44780-compatible driver for
the Technologic TS-7xx0 boards. I patched it to provide some ANSI
support and jj fixed my patches. It's definitely beta but you're
welcome to use it.
Please provide comments/patches/kudos/flames either to me (remove the
obvious from my email above or to jj (his contact info should be in the
tarball.)
http://www.comp.leeds.ac.uk/jj/linux/lcddansi-0.4beta.tgz
My email is valid.
Get in touch if you want hints on changing the code etc. Unfortunately
it doesn't emulate the complete ANSI codes. But I can add stuuf.
The main problem is that I'm not too sure it works with 4 line displays.
I've never had one to try out and test with.
cheers
Jim
----------------------------------------------------------------------------
HomePage: http://www.comp.leeds.ac.uk/jj
TS7200 Page: http://www.comp.leeds.ac.uk/jj/linux/arm-sbc.html
.
- Follow-Ups:
- Re: Ncurses and HD44780 LCD
- From: okalex
- Re: Ncurses and HD44780 LCD
- References:
- Ncurses and HD44780 LCD
- From: okalex
- Re: Ncurses and HD44780 LCD
- From: CptDondo
- Ncurses and HD44780 LCD
- Prev by Date: Re: Problem in upgrading to 2.6 kernel
- Next by Date: Re: Help with using JFFS2 as root filesystem
- Previous by thread: Re: Ncurses and HD44780 LCD
- Next by thread: Re: Ncurses and HD44780 LCD
- Index(es):
Relevant Pages
|