Base: LCDproc 0.5.2
[lcdproc-de200c.git] / contrib / patches / README.ppdev
blob1220035344fc2854f3a44b033a79b7f851ce1ad0
1 By Andréss Trapanotto <mail@andrestrapanotto.com.ar>:
3 And then, the explanation of how it works:
5 Up to now, LCDd access right to the parallel port thru io functions
6 (port_in, port_out, etc...). This way needs root permission and the
7 known of the parallel port io configuration... And this functions are
8 included in-line from port.h to the driver.
10 I've written another set some functions (pp_init, pp_bye,
11 pp_write_data, etc.) in port.c that are not in-line compiled, has a new
12 struct pp_driver as argument allowing to pass them more parameters (now
13 we need to tell which port, register and data we want to use, read or
14 write).
16 And there is something else that is a wrapper to get old functions
17 (port_in, port_out, etc) supported for such drivers that are not
18 modified to use new parallel port functions.
20 So, if you have an LCD attached to your parallel port (like my hd44780)
21 without keys attached to it, you can apply this patch and just forget
22 the io access to the parallel port :)
24 Well, I hope these could be useful to the project. The patch itself has
25 some in-line comments but ask me for any doubt.
27 Best regards, Andrés!