From: Michael R. <re...@eu...> - 2003-09-15 04:02:34
|
Wiktor Zgodzin'ski schrieb: > I have just lunch lcd4linux, It works *Yeaa*, I had to change > HD44780.c to fit my winamp wiring. But i have some other things witch > i can't do. There should be absolutely no need to change something in the C code just to achieve different wiring.... Thatrs what the "Wire.*" entires in the config file are for! > On 17 pin of printer port *AUTOFD* i have some other device. In > documentation I found that this pin is not required in normal work, > this is only optional if I plan to use more then 2 LCD or with 2 > controllers. The problem is that lcd4linux during starts sends some > signals to this pin. Well, that depends on your wiring configuration. There are three signals that may not be used: - RW (Read/Write) may be hardwired to GND - ENABLE2 is only used with big displays - GPO is only used for the GPO latch if you have any GPO's > 1) does lcd4linux sends signall to all pins of printer port No, it does not. It uses (at least with ppdev() style controlling) the parport_frob() function, which allows us to change only specific signals, and leave the rest alone. > 2) how can I set up HD44780.c wiring section to fit my needs ?. > > Currently I have sth like this: > > Write.RW "GND" > Write.RS "INIT" > Write.ENABLE "STROBE" > Write.GPO "AUTOFD" I think it should read "Wire", not "Write" :-) If you don't have any GPO's, and want to leave the AUTOFD line alone, just specify Wire.GPO GND and GPOs 0 Have Fun! -- netWorks Vox: +43 316 698260 Michael Reinelt Fax: +43 316 692343 Geisslergasse 4 GSM: +43 676 3079941 A-8045 Graz, Austria e-mail: re...@eu... |