diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-11-28 17:27:19 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-11-28 17:27:19 +0000 |
commit | d0388bbf0b45bb9a1bfc93d5bb3b1edaf567cb13 (patch) | |
tree | 94b55a7277cd1854963642286be311ed01906295 | |
parent | 77f85dbb785f9028cf4d63e15b6010a165750b31 (diff) | |
download | lcd4linux-d0388bbf0b45bb9a1bfc93d5bb3b1edaf567cb13.tar.gz |
[lcd4linux @ 2000-11-28 17:27:19 by reinelt]
changed decimal values for screen, row, column to ascii values (shame on you!)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@71 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | SIN.c | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: SIN.c,v 1.1 2000/11/28 16:46:11 reinelt Exp $ +/* $Id: SIN.c,v 1.2 2000/11/28 17:27:19 reinelt Exp $ * * driver for SIN router displays * @@ -20,6 +20,10 @@ * * * $Log: SIN.c,v $ + * Revision 1.2 2000/11/28 17:27:19 reinelt + * + * changed decimal values for screen, row, column to ascii values (shame on you!) + * * Revision 1.1 2000/11/28 16:46:11 reinelt * * first try to support display of SIN router @@ -113,7 +117,8 @@ int SIN_clear (void) } } - SIN_write ("\033S\000", 3); // select screen #0 + SIN_write ("\033S0", 3); // select screen #0 + sleep (1); // FIXME: handshaking return 0; } @@ -141,6 +146,7 @@ int SIN_init (LCD *Self) if (Device==-1) return -1; SIN_write ("\015", 1); // send 'Enter' + // Fixme: we must read the identifier here.... SIN_clear(); return 0; @@ -164,11 +170,11 @@ int SIN_flush (void) int row, col; for (row=0; row<Lcd.rows; row++) { - buffer[2]=row+1; + buffer[2]='1'+row; for (col=0; col<Lcd.cols; col++) { if (Txt[row][col]=='\t') continue; - buffer[3]=col+1; - for (p=buffer+4; col<Lcd.cols; col++, p++) { + sprintf (buffer+3, "%2d", col); + for (p=buffer+5; col<Lcd.cols; col++, p++) { if (Txt[row][col]=='\t') break; *p=Txt[row][col]; } |