new driver lis for VLSystem L.I.S VFD (Daryl Fonseca-Holt)

This commit is contained in:
marschap
2007-05-17 12:08:14 +00:00
parent 19af8a8697
commit bb5e622393
11 changed files with 1607 additions and 3 deletions
+3
View File
@@ -230,6 +230,9 @@ Dave Platt
Nicu Pavel
- overhauled picolcd driver
Daryl Fonseca-Holt
- lis driver
Further developers in the sourceforge lcdproc team:
Mindaugas Idzelis aim4min
+1
View File
@@ -18,6 +18,7 @@ v.0.5dev (ongoing development)
* overhauled picolcd driver (Nicu Pavel)
+ add ServerScreen=blank option value
* MtxOrb driver: fix VFD/VKD support (Ethan Dicks)
+ new driver lis for VLSystem L.I.S VFD (Daryl Fonseca-Holt)
v.0.5.2
* fix switching on/off the Load screen in lcdproc client using the menu
+10
View File
@@ -619,6 +619,16 @@ Size=16x2
#prog=lcdd
## LIS MCE 2005 driver ##
[lis]
# USB device to use [default: /dev/ttyUSB0]
Device=/dev/ttyUSB0
# Set the initial brightness [default: 1000; legal: 0 - 1000]
Brightness=1000
##The driver for the VFD of the Medion MD8800 PC ##
[MD8800]
+26 -2
View File
@@ -7,7 +7,7 @@ AC_ARG_ENABLE(drivers,
[ Possible drivers are:]
[ bayrad,CFontz,CFontz633,CFontzPacket,curses,CwLnx,ea65,]
[ EyeboxOne,g15,glcdlib,glk,hd44780,icp_a106,imon,IOWarrior,]
[ irman,joy,lb216,lcdm001,lcterm,lirc,MD8800,ms6931,]
[ irman,joy,lb216,lcdm001,lcterm,lirc,lis,MD8800,ms6931,]
[ mtc_s16209x,MtxOrb,NoritakeVFD,picolcd,pyramid,sed1330]
[ sed1520,serialPOS,serialVFD,sli,stv5730,svga,t6963,text,]
[ tyan,ula200,xosd]
@@ -16,7 +16,7 @@ AC_ARG_ENABLE(drivers,
drivers="$enableval",
drivers=[bayrad,CFontz,CFontz633,curses,CwLnx,glk,lb216,lcdm001,MtxOrb,pyramid,text])
allDrivers=[bayrad,CFontz,CFontz633,CFontzPacket,curses,CwLnx,ea65,EyeboxOne,g15,glcdlib,glk,hd44780,icp_a106,imon,IOWarrior,irman,joy,lb216,lcdm001,lcterm,lirc,MD8800,ms6931,mtc_s16209x,MtxOrb,NoritakeVFD,picolcd,pyramid,sed1330,sed1520,serialPOS,serialVFD,sli,stv5730,svga,t6963,text,tyan,ula200,xosd]
allDrivers=[bayrad,CFontz,CFontz633,CFontzPacket,curses,CwLnx,ea65,EyeboxOne,g15,glcdlib,glk,hd44780,icp_a106,imon,IOWarrior,irman,joy,lb216,lcdm001,lcterm,lirc,lis,MD8800,ms6931,mtc_s16209x,MtxOrb,NoritakeVFD,picolcd,pyramid,sed1330,sed1520,serialPOS,serialVFD,sli,stv5730,svga,t6963,text,tyan,ula200,xosd]
drivers=`echo $drivers | sed -e 's/,/ /g'`
@@ -256,6 +256,30 @@ dnl else
AC_MSG_WARN([The lirc driver needs the lirc client library])
])
;;
lis)
AC_CHECK_HEADERS([usb.h ftdi.h],[
AC_CHECK_LIB(ftdi, main,[
LIBFTDI="-lusb -lftdi"
DRIVERS="$DRIVERS lis${SO}"
actdrivers=["$actdrivers lis"]
],[
dnl else
AC_MSG_WARN([The lis driver needs the ftdi library])
])
],[
dnl else
AC_MSG_WARN([The lis driver needs ftdi.h and usb.h])
])
AC_CACHE_CHECK([for ftdi_setdtr() in libftdi], ac_cv_ftdi_setdtr,
[oldlibs="$LIBS"
LIBS="$LIBS $LIBFTDI"
AC_TRY_LINK_FUNC(ftdi_setdtr, ac_cv_ftdi_setdtr=yes, ac_cv_ftdi_setdtr=no)
LIBS="$oldlibs"
])
if test "$ac_cv_ftdi_setdtrt" = no; then
AC_MSG_WARN([Upgrade to libftdi >= version 0.8])
fi
;;
MD8800)
DRIVERS="$DRIVERS MD8800${SO}"
actdrivers=["$actdrivers MD8800"]
+3
View File
@@ -189,6 +189,9 @@ serial LCD terminal from Helmut Neumark Elektronik (http://www.neumark.de)
.B lirc
Infrared (input)
.TP
.B lis
L.I.S MCE 2005 20x2 VFD (http://vlsys.co.kr)
.TP
.B MD8800
VFD displays in Medion MD8800 PCs
.TP
+1
View File
@@ -28,6 +28,7 @@ well as the configuration of LCDd.
&lcdm001;
&lcterm;
&lirc;
&lis;
&MD8800;
&ms6931;
&mtc_s16209x;
+50
View File
@@ -0,0 +1,50 @@
<sect1 id="lis-howto">
<title>The lis Driver</title>
<para>
This section talks about using LCDproc with the VLSystem L.I.S
MCE 2005 Vacuum Flourescent Display based on the FTDI USB-to-serial
converter, the Microchip PIC-16F716 microcontroller, and
the NEC UPD16314 display driver that can be obtained at
<ulink url="http://www.vlsys.co.kr">VLSys</ulink>.
</para>
<!-- ## VLSys lis driver ## -->
<sect2 id="lis-config">
<title>Configuration in LCDd.conf</title>
<sect3 id="lis-config-section">
<title>[lis]</title>
<variablelist>
<varlistentry>
<term>
<command>Brightness=</command>
<arg choice="plain"><replaceable>BRIGHTNESS</replaceable></arg>
</term>
<listitem><para>
Set the initial brightness [default: <literal>1000</literal>; legal: <literal>0</literal> - <literal>1000</literal>]
</para></listitem>
</term>
<listitem><para>
Select the LCD size [default: <literal>20x4</literal>]
</para></listitem>
</varlistentry>
<varlistentry>
<term>
<command>Device=</command>
<arg choice="plain"><replaceable>DEVICE</replaceable></arg>
</term>
<listitem><para>
USB device to use. Usual values are <filename>/dev/ttyUSB0</filename>, <filename>/dev/ttyUSB1</filename>, etc.
[default: <filename>/dev/ttyUSB0</filename>].
</para></listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>
</sect1>
+1
View File
@@ -34,6 +34,7 @@
<!ENTITY lcdm001 SYSTEM "drivers/lcdm001.docbook">
<!ENTITY lcterm SYSTEM "drivers/lcterm.docbook">
<!ENTITY lirc SYSTEM "drivers/lircin.docbook">
<!ENTITY lis SYSTEM "drivers/lis.docbook">
<!ENTITY MD8800 SYSTEM "drivers/MD8800.docbook">
<!ENTITY ms6931 SYSTEM "drivers/ms6931.docbook">
<!ENTITY mtc_s16209x SYSTEM "drivers/mtc_s16209x.docbook">
+3 -1
View File
@@ -19,7 +19,7 @@ AM_LDFLAGS = @LDSHARED@
#LIBS =
pkglib_PROGRAMS = @DRIVERS@
EXTRA_PROGRAMS = bayrad CFontz CFontz633 CFontzPacket curses CwLnx ea65 EyeboxOne g15 glcdlib glk hd44780 icp_a106 imon IOWarrior irman joy lb216 lcdm001 lcterm lirc MD8800 ms6931 mtc_s16209x MtxOrb NoritakeVFD picolcd pyramid sed1330 sed1520 serialPOS serialVFD stv5730 svga t6963 text tyan sli ula200 xosd
EXTRA_PROGRAMS = bayrad CFontz CFontz633 CFontzPacket curses CwLnx ea65 EyeboxOne g15 glcdlib glk hd44780 icp_a106 imon IOWarrior irman joy lb216 lcdm001 lcterm lirc lis MD8800 ms6931 mtc_s16209x MtxOrb NoritakeVFD picolcd pyramid sed1330 sed1520 serialPOS serialVFD stv5730 svga t6963 text tyan sli ula200 xosd
noinst_LIBRARIES = libLCD.a libbignum.a
IOWarrior_CFLAGS = @libusb_cflags@ $(AM_CFLAGS)
@@ -42,6 +42,7 @@ IOWarrior_LDADD = @libusb_libs@ libLCD.a libbignum.a
irman_LDADD = @LIBIRMAN@
lcterm_LDADD = libLCD.a
lirc_LDADD = @LIBLIRC_CLIENT@
lis_LDADD = libLCD.a @LIBFTDI@
MD8800_LDADD = libLCD.a
mtc_s16209x_LDADD = libLCD.a
MtxOrb_LDADD = libLCD.a libbignum.a
@@ -83,6 +84,7 @@ lb216_SOURCES = lcd.h lb216.c lb216.h report.h
lcdm001_SOURCES = lcd.h lcdm001.c lcdm001.h report.h
lcterm_SOURCES = lcd.h lcd_lib.h lcterm.c lcterm.h report.h
lirc_SOURCES = lcd.h lircin.c lircin.h report.h
lis_SOURCES = lcd.h lcd_lib.h lis.h lis.c report.h
MD8800_SOURCES = lcd.h lcd_lib.h MD8800.c MD8800.h report.h
ms6931_SOURCES = lcd.h lcd_lib.h ms6931.h ms6931.c report.h
mtc_s16209x_SOURCES = lcd.h lcd_lib.h mtc_s16209x.c mtc_s16209x.h report.h
+1465
View File
File diff suppressed because it is too large Load Diff
+44
View File
@@ -0,0 +1,44 @@
/*
Based on the lis driver Copyright (C) 2006, Bernhard Walle
Copyright (c) 2007, Daryl Fonseca-Holt <wyatt@prairieturtle.ca>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 */
#ifndef LIS_H
#define LIS_H
#include "lcd.h"
#ifndef bool
# define bool short
# define true 1
# define false 0
#endif
MODULE_EXPORT int lis_init(Driver *drvthis);
MODULE_EXPORT void lis_close (Driver *drvthis);
MODULE_EXPORT int lis_width (Driver *drvthis);
MODULE_EXPORT int lis_height (Driver *drvthis);
MODULE_EXPORT void lis_clear (Driver * drvthis);
MODULE_EXPORT void lis_string (Driver * drvthis, int x, int y, char string[]);
MODULE_EXPORT void lis_chr (Driver * drvthis, int x, int y, char c);
MODULE_EXPORT void lis_set_char (Driver * drvthis, int n, char *dat);
MODULE_EXPORT void lis_flush (Driver * drvthis);
MODULE_EXPORT void lis_vbar (Driver * drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT void lis_hbar (Driver * drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT void lis_num (Driver * drvthis, int x, int num);
MODULE_EXPORT int lis_icon(Driver * drvthis, int x, int y, int icon);
#endif /* LIS_H */