diff options
author | reinelt <> | 2003-07-24 04:48:09 +0000 |
---|---|---|
committer | reinelt <> | 2003-07-24 04:48:09 +0000 |
commit | 80ad6d155c1b974590f0c96b6291b0baa70b09d5 (patch) | |
tree | b53a7102debdc89d8fe44e0c6b913019d78f60bc /MatrixOrbital.c | |
parent | a7a6b96ef3ef6a0abc6790addb8dc298ae7bb693 (diff) | |
download | lcd4linux-80ad6d155c1b974590f0c96b6291b0baa70b09d5.tar.gz |
[lcd4linux @ 2003-07-24 04:48:09 by reinelt]
'soft clear' needed for virtual rows
Diffstat (limited to 'MatrixOrbital.c')
-rw-r--r-- | MatrixOrbital.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/MatrixOrbital.c b/MatrixOrbital.c index 60d3525..822fec6 100644 --- a/MatrixOrbital.c +++ b/MatrixOrbital.c @@ -1,4 +1,4 @@ -/* $Id: MatrixOrbital.c,v 1.27 2003/02/22 07:53:10 reinelt Exp $ +/* $Id: MatrixOrbital.c,v 1.28 2003/07/24 04:48:09 reinelt Exp $ * * driver for Matrix Orbital serial display modules * @@ -20,6 +20,9 @@ * * * $Log: MatrixOrbital.c,v $ + * Revision 1.28 2003/07/24 04:48:09 reinelt + * 'soft clear' needed for virtual rows + * * Revision 1.27 2003/02/22 07:53:10 reinelt * cfg_get(key,defval) * @@ -254,6 +257,8 @@ static int MO_clear (int protocol) bar_clear(); + GPO=0; + switch (protocol) { case 1: MO_write ("\014", 1); // Clear Screen @@ -269,18 +274,17 @@ static int MO_clear (int protocol) break; } - GPO=0; return 0; } -int MO_clear1 (void) +int MO_clear1 (int full) { - return MO_clear(1); + return MO_clear(full?1:0); } -int MO_clear2 (void) +int MO_clear2 (int full) { - return MO_clear(2); + return MO_clear(full?2:0); } |