From 8bd25913d494772e695311c5745bbcc8a5a57e77 Mon Sep 17 00:00:00 2001 From: reinelt Date: Thu, 15 Jan 2004 07:47:03 +0000 Subject: [lcd4linux @ 2004-01-15 07:47:02 by reinelt] debian/ postinst and watch added (did CVS forget about them?) evaluator: conditional expressions (a?b:c) added text widget nearly finished git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@313 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_MatrixOrbital.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'drv_MatrixOrbital.c') diff --git a/drv_MatrixOrbital.c b/drv_MatrixOrbital.c index 2fdf1ef..43b7dd7 100644 --- a/drv_MatrixOrbital.c +++ b/drv_MatrixOrbital.c @@ -1,4 +1,4 @@ -/* $Id: drv_MatrixOrbital.c,v 1.7 2004/01/14 11:33:00 reinelt Exp $ +/* $Id: drv_MatrixOrbital.c,v 1.8 2004/01/15 07:47:02 reinelt Exp $ * * new style driver for Matrix Orbital serial display modules * @@ -23,6 +23,11 @@ * * * $Log: drv_MatrixOrbital.c,v $ + * Revision 1.8 2004/01/15 07:47:02 reinelt + * debian/ postinst and watch added (did CVS forget about them?) + * evaluator: conditional expressions (a?b:c) added + * text widget nearly finished + * * Revision 1.7 2004/01/14 11:33:00 reinelt * new plugin 'uname' which does what it's called * text widget nearly finished @@ -443,12 +448,15 @@ static int drv_MO_start (char *section) bar_add_segment( 0, 0,255, 32); // ASCII 32 = blank bar_add_segment(255,255,255,255); // ASCII 255 = block - - // Fixme: get rid of this function - // drv_MO_clear(1); + // Fixme: where to init contrast? - drv_MO_contrast(160); + drv_MO_contrast(128); + if (PROTOCOL==2) + drv_MO_write ("\376\130", 2); // Clear Screen + else + drv_MO_write ("\014", 1); // Clear Screen + drv_MO_write ("\376B", 3); // backlight on drv_MO_write ("\376K", 2); // cursor off drv_MO_write ("\376T", 2); // blink off -- cgit v1.2.3