From faa787c21583abc730b63fc6abbdc0950d247e05 Mon Sep 17 00:00:00 2001 From: hklein Date: Mon, 17 Jan 2000 08:22:15 +0000 Subject: [PATCH] Modified Files: acconfig.h acinclude.m4 server/Makefile.am server/drivers/Makefile.am server/drivers/lcd.c Added Files: README.lirc server/drivers/lircin.c server/drivers/lircin.h --- README.lirc | 70 ++++++++++++++++++++++++++++++++++++++++++++++ acconfig.h | 2 ++ acinclude.m4 | 9 +++++- server/Makefile.am | 2 +- 4 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 README.lirc diff --git a/README.lirc b/README.lirc new file mode 100644 index 0000000..6849dd5 --- /dev/null +++ b/README.lirc @@ -0,0 +1,70 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +******************************************************* +LCDd lirc driver README - Harald Klein, linux@chello.at +******************************************************* + +This is the first release of lirc driver for LCDd. +To use it simply enable it with configure + +eg. (Matrix Orbital Display and lirc): +$ ./configure --enable-drivers=mtxorb,lircin + +This driver parses the .lircrc file. remote and mode are +also supported. You can define a LCDd key with + +- --- snip .lircrc --- +begin + prog = lcdd + button = 2 + config = A +end + +begin + prog = lcdd + button = 4 + config = B +end + +begin + prog = lcdd + button = 6 + config = C +end + +begin + prog = lcdd + button = 8 + config = D +end +- --- snip --- + + +Any suggestions? Feel free to write a mail... + +Have fun! + +PS.: +You don't have an infrared receiver? + +1.) visit the Lirc homepage and get lirc. http://fsinfo.cs.uni-sb.de/~columbus/lirc/ +2.) decide for device (irman, animax, home brew receiver, universal remote ...) + If you want to build the serial receiver i suggest to ask Infineon for test samples + (sfh5110-36, eg, be sure to get correct freq, i use 36 khz, fits for all my remotes) + and USE THE 7805 TO REGULATE THE VOLTAGE !! its cheap, and the circuits with transistors + mostly wont work. +3.) Install lirc + +PPS.: Yes, this also works with IRMAN. + +Greets to all open source developers out there!!! + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.0.1 (GNU/Linux) +Comment: For info see http://www.gnupg.org + +iD8DBQE4gmBNQ8ap3H8sEzkRAqaYAJ93s0joSyPZVeeGKkVn+FqGte5XDgCaAjpA +drqseag4vCi3Omg5NND7+dw= +=DJkG +-----END PGP SIGNATURE----- diff --git a/acconfig.h b/acconfig.h index 68899aa..89d0270 100644 --- a/acconfig.h +++ b/acconfig.h @@ -15,6 +15,8 @@ Leave the following blank line there!! Autoheader needs it. */ +#undef LIRCIN_DRV + #undef CFONTZ_DRV #undef CURSES_DRV diff --git a/acinclude.m4 b/acinclude.m4 index 9f6b784..8e8b96c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -9,7 +9,7 @@ AC_ARG_ENABLE(drivers, drivers=[mtxorb,cfontz,curses,text]) if test "$drivers" = "all"; then - drivers=[mtxorb,cfontz,curses,text,hd44780,joy,irman] + drivers=[mtxorb,cfontz,curses,text,hd44780,joy,irman,lircin] AC_MSG_RESULT(all) else drivers=`echo $drivers | sed 's/,/ /g'` @@ -54,6 +54,12 @@ else DRIVERS="$DRIVERS irmanin.o" AC_DEFINE(IRMANIN_DRV) ;; + lircin) + AC_CHECK_LIB(lirc_client, main, LIBLIRC_CLIENT="-llirc_client", + AC_MSG_ERROR([The lirc driver needs the lirc client library])) + DRIVERS="$DRIVERS lircin.o" + AC_DEFINE(LIRCIN_DRV) + ;; *) AC_MSG_ERROR([Uknown driver $driver]) ;; @@ -62,6 +68,7 @@ else fi AC_SUBST(LIBCURSES) AC_SUBST(LIBIRMAN) +AC_SUBST(LIBLIRC_CLIENT) AC_SUBST(DRIVERS) ]) diff --git a/server/Makefile.am b/server/Makefile.am index aea61dc..214dcf5 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -1,4 +1,4 @@ SUBDIRS=drivers sbin_PROGRAMS=LCDd LCDd_SOURCES= client_data.c client_data.h client_functions.c client_functions.h client_menu.h clients.c clients.h input.c input.h main.c main.h menu.c menu.h menus.c menus.h parse.c parse.h render.c render.h screen.c screen.h screenlist.c screenlist.h serverscreens.c serverscreens.h sock.c sock.h widget.c widget.h -LCDd_LDADD = drivers/libLCDdrivers.a ../shared/libLCDstuff.a @LIBCURSES@ @LIBIRMAN@ +LCDd_LDADD = drivers/libLCDdrivers.a ../shared/libLCDstuff.a @LIBCURSES@ @LIBIRMAN@ @LIBLIRC_CLIENT@