From 5414619565f3ecdc905f5f5be27fef953a7fa436 Mon Sep 17 00:00:00 2001 From: reinelt Date: Fri, 1 Dec 2000 07:20:26 +0000 Subject: [lcd4linux @ 2000-12-01 07:20:26 by reinelt] modified text positioning: row starts with 0, column is hexadecimal git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@73 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- SIN.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/SIN.c b/SIN.c index a599c5f..fc03047 100644 --- a/SIN.c +++ b/SIN.c @@ -1,4 +1,4 @@ -/* $Id: SIN.c,v 1.2 2000/11/28 17:27:19 reinelt Exp $ +/* $Id: SIN.c,v 1.3 2000/12/01 07:20:26 reinelt Exp $ * * driver for SIN router displays * @@ -20,6 +20,10 @@ * * * $Log: SIN.c,v $ + * Revision 1.3 2000/12/01 07:20:26 reinelt + * + * modified text positioning: row starts with 0, column is hexadecimal + * * Revision 1.2 2000/11/28 17:27:19 reinelt * * changed decimal values for screen, row, column to ascii values (shame on you!) @@ -117,8 +121,7 @@ int SIN_clear (void) } } - SIN_write ("\033S0", 3); // select screen #0 - sleep (1); // FIXME: handshaking + SIN_write ("\033 ",2); return 0; } @@ -146,7 +149,9 @@ int SIN_init (LCD *Self) if (Device==-1) return -1; SIN_write ("\015", 1); // send 'Enter' - // Fixme: we must read the identifier here.... + // Fixme: should we read the identifier here.... + SIN_write ("\033S0", 3); // select screen #0 + sleep (1); // FIXME: handshaking SIN_clear(); return 0; @@ -165,20 +170,19 @@ int SIN_put (int row, int col, char *text) int SIN_flush (void) { - char buffer[256]="\033T"; // place text + char buffer[256]="\015\033T"; // place text char *p; int row, col; for (row=0; row SIN_write (buffer, p-buffer); } } -- cgit v1.2.3