public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Alphanumeric LCD driver
@ 2009-10-27 12:20 Steven Clugston
  2009-10-27 21:59 ` Sergei Gavrikov
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Clugston @ 2009-10-27 12:20 UTC (permalink / raw)
  To: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 1704 bytes --]

Hi all.

I've got some code to offer for discussion/comments.

I've written a simple bit-bash style LCD driver for those very common 2-line LCDs that use the Hitachi 4 or 8-bit HD44780 protocol.
I created an IO layer so that other types such as SPI, I2C, USB might be added at a later stage.

I've been using this code with an Olimex SAM7MT256 board which comes with one of these screens already soldered on it.
I think they also do an almost identical board which uses an LPC2xxx chip instead of an AT91.

Anyway, the code works as it stands with the above board, but I need to add some macros in a similar way to the I2C bit bang bus so that the HAL or application can define which IO lines are used for the LCD data and control lines.

The end goal for me is to be able to use a pdcurses wrapper driver with it so that the management of the screen's contents is improved by creating virtual pages which can be cycled through for example. It might seem like overkill and a major code bloat for a 2-line screen I suppose, but it could be extended for larger screens at some point in the future.  I've started to write the pdcurses driver and tested it and it seems to work in a standalone application, but I've not included it yet as it need more cleanup and testing.

I think LCD screens can be a useful debugging/tracing tool when all serial ports are taken or where there are none in the first place. They are a step better than just flashing a LED anyway.

Before I send any more time on it, is anybody else interested in this and would it eventually acceptable for CVS?

Are there any comments/suggestions particularly with regard to the IO layer generality?

Regards,

Steven

[-- Attachment #2: alphanumlcd.tar.gz --]
[-- Type: application/x-gzip, Size: 5229 bytes --]

[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-29 20:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-27 12:20 [ECOS] Alphanumeric LCD driver Steven Clugston
2009-10-27 21:59 ` Sergei Gavrikov
2009-10-28 22:25   ` Steven Clugston
2009-10-29 20:02     ` Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).