LCDproc development and user support list

Text archives Help


[lcdproc] HD44780 problem with 40x2


Chronological Thread 
  • From: robin AT adams-online.de (Robin Adams)
  • Subject: [lcdproc] HD44780 problem with 40x2
  • Date: Wed, 07 Feb 2001 20:01:29 +0100

Hi,
it seems the parallel port driver is still hard-coded to
only send 20 chars a line. The attached patch, should fix
it for you, please tell me if it works.
Apply it as follows:

# cd where_my_lcdproc_is
# patch -p 1 < /where_patch_is/patch40x2.p
# make clean
# make

Most of the standard lcdproc screens are optimized for
four line displays, so you might have to alter the
client software, too.

greetings,
Robin Adams
robin AT adams-online.dediff -u -r lcdproc-0.4-pre9.orig/server/drivers/hd44780.c
lcdproc-0.4-pre9/server/drivers/hd44780.c
--- lcdproc-0.4-pre9.orig/server/drivers/hd44780.c Sat Nov 13 20:45:47
1999
+++ lcdproc-0.4-pre9/server/drivers/hd44780.c Wed Feb 7 19:37:53 2001
@@ -550,10 +550,10 @@

if (!dat) return;

- for (y=0; y<=3; y++) {
+ for (y=0; y<=1; y++) {
HD44780_position(0,y);

- for (x=0 ; x<=19 ; x++) {
+ for (x=0 ; x<=39 ; x++) {
HD44780_senddata(RS,dat[(y*lcd.wid)+x]);
}
}


-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe AT lists.omnipotent.net


Archive powered by MHonArc 2.6.18.

Top of page