From 4bb6b0d869fe0685a38ea33a5b0cd6e914aee1fe Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Fri, 10 Mar 2000 17:36:02 +0000 Subject: [lcd4linux @ 2000-03-10 17:36:02 by reinelt] first unstable but running release --- MatrixOrbital.c | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-) (limited to 'MatrixOrbital.c') diff --git a/MatrixOrbital.c b/MatrixOrbital.c index 56e2091..f59a81e 100644 --- a/MatrixOrbital.c +++ b/MatrixOrbital.c @@ -1,3 +1,40 @@ +/* $Id: MatrixOrbital.c,v 1.4 2000/03/10 17:36:02 reinelt Exp $ + * + * driver for Matrix Orbital serial display modules + * + * Copyright 1999, 2000 by Michael Reinelt (reinelt@eunet.at) + * + * 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, or (at your option) + * 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., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * + * $Log: MatrixOrbital.c,v $ + * Revision 1.4 2000/03/10 17:36:02 reinelt + * + * first unstable but running release + * + * + */ + +/* + * + * exported fuctions: + * + * struct DISPLAY MatrixOrbital[] + * + */ + #include #include #include @@ -6,7 +43,7 @@ #include #include -#include "config.h" +#include "cfg.h" #include "display.h" #define XRES 5 @@ -39,8 +76,6 @@ static int nSegment=2; static SEGMENT Segment[256] = {{ len1: 0, len2: 0, type:255, used:0, ascii:32 }, { len1:XRES, len2:XRES, type:255, used:0, ascii:255 }}; -#define CL 0x0b - static int MO_open (void) { @@ -149,6 +184,7 @@ static void MO_compact_bars (void) while (nSegment>CHARS+2) { min=65535; pack_i=-1; + pack_j=-1; for (i=2; i