diff options
author | reinelt <> | 2000-04-12 08:05:45 +0000 |
---|---|---|
committer | reinelt <> | 2000-04-12 08:05:45 +0000 |
commit | 960aa7ec9ab275c7ebeb4bba96dbbd7b9211c000 (patch) | |
tree | 00296cc199b3242eb56466e7f19022506839b8f1 /MatrixOrbital.c | |
parent | 16fc06515887f1bb9ee01feaa7263997bf0f2ef1 (diff) | |
download | lcd4linux-960aa7ec9ab275c7ebeb4bba96dbbd7b9211c000.tar.gz |
[lcd4linux @ 2000-04-12 08:05:45 by reinelt]
first version of the HD44780 driver
Diffstat (limited to 'MatrixOrbital.c')
-rw-r--r-- | MatrixOrbital.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/MatrixOrbital.c b/MatrixOrbital.c index ebd224d..e178f79 100644 --- a/MatrixOrbital.c +++ b/MatrixOrbital.c @@ -1,4 +1,4 @@ -/* $Id: MatrixOrbital.c,v 1.14 2000/04/10 04:40:53 reinelt Exp $ +/* $Id: MatrixOrbital.c,v 1.15 2000/04/12 08:05:45 reinelt Exp $ * * driver for Matrix Orbital serial display modules * @@ -20,6 +20,10 @@ * * * $Log: MatrixOrbital.c,v $ + * Revision 1.15 2000/04/12 08:05:45 reinelt + * + * first version of the HD44780 driver + * * Revision 1.14 2000/04/10 04:40:53 reinelt * * minor changes and cleanups @@ -95,7 +99,6 @@ #include "lock.h" #include "display.h" -#define SPEED 19200 #define XRES 5 #define YRES 8 #define CHARS 8 @@ -367,7 +370,7 @@ int MO_clear (void) return 0; } -static void MO_quit (int signal); //forward decvlaration +static void MO_quit (int signal); //forward declaration int MO_init (LCD *Self) { @@ -411,10 +414,6 @@ int MO_init (LCD *Self) Device=MO_open(); if (Device==-1) return -1; - signal(SIGINT, MO_quit); - signal(SIGQUIT, MO_quit); - signal(SIGTERM, MO_quit); - MO_clear(); MO_contrast(); @@ -425,6 +424,10 @@ int MO_init (LCD *Self) MO_write ("\376R", 2); // auto scroll off MO_write ("\376V", 2); // GPO off + signal(SIGINT, MO_quit); + signal(SIGQUIT, MO_quit); + signal(SIGTERM, MO_quit); + return 0; } |