Re: Ncurses and HD44780 LCD



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
.



Relevant Pages

  • Re: Ncurses and HD44780 LCD
    ... I'm working on a project with a 4x20 HD44780-compatible character LCD ... which is used to display a menuing system. ... redirect the Ncurses output to the LCD device instead of stdout? ... I patched it to provide some ANSI support and jj fixed my patches. ...
    (comp.os.linux.embedded)
  • Ncurses and HD44780 LCD
    ... I'm working on a project with a 4x20 HD44780-compatible character LCD ... which is used to display a menuing system. ... redirect the Ncurses output to the LCD device instead of stdout? ...
    (comp.os.linux.embedded)
  • Re: SVGA, LCD, Win CE 6.0 and PB
    ... site addressing display drver issues, not to mention the source code. ... can you tell me how the resolution ... travel down thru Win CE from boot.ini to the place genrating final LCD ...
    (microsoft.public.windowsce.platbuilder)
  • LCD TV as a PC monitor - any practical hints?
    ... LCD TV, or a "public display" LCD for an even higher price (with ... I don't see much need for higher resolutions - those ... At just the right resolution, the pixels tend ...
    (comp.sys.ibm.pc.hardware.video)
  • Re: SVGA, LCD, Win CE 6.0 and PB
    ... LCD = Windows CE desktop size. ... I can have a desktop larger than physical screen window. ... display. ... I've got full 800 pixel wide desktop image when I run Win XP on ...
    (microsoft.public.windowsce.platbuilder)