aboutsummaryrefslogtreecommitdiffstats
path: root/drv_MatrixOrbital.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-15 07:47:03 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-15 07:47:03 +0000
commit8bd25913d494772e695311c5745bbcc8a5a57e77 (patch)
treef68e6fa36a66eb421d67154ef105b28971e483c3 /drv_MatrixOrbital.c
parent89e4f42deb9e5c5bdc712613d85629d4398e19b7 (diff)
downloadlcd4linux-8bd25913d494772e695311c5745bbcc8a5a57e77.tar.gz
[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
Diffstat (limited to 'drv_MatrixOrbital.c')
-rw-r--r--drv_MatrixOrbital.c18
1 files changed, 13 insertions, 5 deletions
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