[lcd4linux @ 2000-04-12 08:05:45 by reinelt]

first version of the HD44780 driver

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@43 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
reinelt
2000-04-12 08:05:45 +00:00
parent 66d30deaa9
commit 73ffb61bfc
6 changed files with 535 additions and 24 deletions

View File

@@ -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;
}