X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=old-door-deamon%2Flibparportled-0.5.1%2FREADME;fp=old-door-deamon%2Flibparportled-0.5.1%2FREADME;h=0000000000000000000000000000000000000000;hp=d03e75686222b792f890d56e1449a66232c08720;hb=ef0255ffe0a390c49c6e2c3e41fb5312032a4f00;hpb=5f90a9da59975c3bf81efc461fcd13637e4e0e5d diff --git a/old-door-deamon/libparportled-0.5.1/README b/old-door-deamon/libparportled-0.5.1/README deleted file mode 100644 index d03e756..0000000 --- a/old-door-deamon/libparportled-0.5.1/README +++ /dev/null @@ -1,60 +0,0 @@ -libparportled - 0.1.1 -------------------- -This library is intended to control a LED device plugged on parallel port. -A such device is composed of a number of LED (default is 8, maybe more is -possible, I don't know) plugged on parallel port. - -Author ------- -Julien Danjou -http://jdanjou.org/libparportled/ - -Usage ------ -gcc option: -lparportled -#include - -MAXLED is defined as the number of LED available. -(--with-maxled= in configure option) - -BASEPORT is the IO address of parallel port -(--with-port= in configure option) - -Functions available are: - -int led_setperm(); -Initialise the parallel port, MUST be root ! -Return -1 on error. - -void led_on_all(); -Turn all LED on. - -void led_off_all(); -Turn all LED off. - -int led_on(int led); -Turn LED number "led" on. - -int led_off(int led); -Turn LED number "led" off. - -int led_set_on(int *state); -State must be a int vector. If value is > 0, LED will be turned on. - -int led_set_off(int *state); -Do the inverse of led_set(). - -int led_blink_on(int led, int us_time); -Start blinking LED number "led". us_time is the time in microsecond of -the state changement. -This function starts a new thread. -Please note that all LED are blinking with in a same interval, the first -us_time is used. -If you do: -led_blink_on(1, 10000); -led_blink_on(2, 2000); -10000 will be used for ALL blinking LED. - -int led_blink_off(int led); -Stop blinking LED number led. -If no more led are blinking, thread exits.