[Lcdproc] 4bit-HD44780 and keymatrix...

Markus Dolze bsdfan at nurfuerspam.de
Thu Dec 24 23:13:45 UTC 2009


Hi,

-------- Original-Nachricht --------
> Datum: Wed, 23 Dec 2009 22:11:19 +0100
> Von: "Markus Dolze" <bsdfan at nurfuerspam.de>
> An: "Thorsten Godau" <dl9sec at gmx.net>, lcdproc at lists.omnipotent.net
> Betreff: Re: [Lcdproc] 4bit-HD44780 and keymatrix...

> > 
> > My keymatrix is the following:
> > 
> >   +5V ----------+---------+--------+---------+
> >                 |         |        |         |
> >                22k       22k      22k       22k
> >                 |         |        |         |
> >    Y7 -|<|--+---------+--------+---------+   |
> >             |   |     |   |    |   |     |   |
> >             o   |     o   |    o   |     o   |
> >           S1 \  |   S2 \  |  S3 \  |   S4 \  |
> >             o   |     o   |    o   |     o   |
> >             |   |     |   |    |   |     |   |
> >             +---+     +---+    +---+     +---+
> >                 |         |        |         |
> >                 |         |        |         |
> >    Y8 -|<|--+------------------+---------+   |
> >             |   |         |    |   |     |   |
> >             o   |         |    o   |     o   |
> >           S5 \  |         |  S6 \  |   S7 \  |
> >             o   |         |    o   |     o   |
> >             |   |         |    |   |     |   |
> >             +---+         |    +---+     +---+
> >                 |         |        |         |
> >    X1 ----------+         |        |         |
> >                           |        |         |
> >    X2 --------------------+        |         |
> >                                    |         |
> >    X3 -----------------------------+         |
> >                                              |
> >    X4 ---------------------------------------+ 
> > 
...
> 
> The 'keymatrix' setting counts from '1' whereas the Y# and X# lines are
> counted from '0' in the documentation.
> 

Your description in the drawing uses the names for Y#/X# like in the HTML documentation. Counting starts from '1' there as well. I was looking at the code comments, where Y#/X# are counted from '0'. I should change this eventually.

Can you try what happens if you connect Y7 to 'D0' and Y8 to 'D1' on the parallel port?

Regards,
Markus


More information about the LCDproc mailing list