[Lcdproc] Can't get this thing working...
Markus Dolze
bsdfan at nurfuerspam.de
Sat Dec 26 22:46:56 UTC 2009
Joris Robijn wrote:
> On 26 Dec 2009 at 10:36, Thorsten Godau wrote:
>
>
>> Can i use the keymatrix connected to the LPT in parallel?
>> How do i have to extend my LCDd.conf (somewhere i read, that i can use
>> more than one devices in the hd44780-section...)?
>>
>
> Hi Thorsten,
>
> I think you can. The driver should (repeat: should) be capable of
> instantiating twice. In the the config file you can indicate for each
> driver what module (.so file) to load. That way, you can load the same
> module twice. This is done with the File= parameter of a driver. By
> default it loads the same filename as the drivername. For example:
>
> Drivers=hd44780,hd44780keypad
>
> [hd44780]
> # this one loads hd44780.so because filename is unspecified
> # ... here specify your ususal parameters
> type=lcd2usb #or whatever
>
> [hd44780keypad]
> File=hd44780.so # forced filename
> Port=0x278
> key_direct_0="Menu"
> key_matrix_1_4="A"
>
> The first driver loaded is the primary driver and this one determines
> things like display size reported to clients. Keys can come from any
> driver. You can also load the curses driver only to generate keypresses
> for your hd44780 display.
>
> I hope all this information is still true, I haven't played with this
> stuff very much lately.
>
> Regards,
> Joris
>
>
Markus Dolze wrote:
> I don't think this is possible. There is currently no 'input only'
> driver for parallel port connected keypads. Out of those drivers using
> a parallel port only hd44780 supports keypads, but you cannot use two
> hd44780 drivers. If at all, you can only use different drivers.
>
I was wrong about this (thanks Joris for pointing this out). I looked it
up and it seems the necessary code is still there, although I think it
is not
Drivers=hd44780,hd44780keypad
but
Driver=hd44780
Driver=hd44780keypad
(multiple "Driver=" lines). Everything else should work like described
by Joris.
Regards,
Markus
More information about the LCDproc
mailing list