diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-07-24 04:48:09 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-07-24 04:48:09 +0000 |
commit | 7ed5b7a1b4bc3cc31aa89bba015c3a5e856b2ad8 (patch) | |
tree | b53a7102debdc89d8fe44e0c6b913019d78f60bc /USBLCD.c | |
parent | 93be7266dd3f05b297c7b25920d6362452a447f9 (diff) | |
download | lcd4linux-7ed5b7a1b4bc3cc31aa89bba015c3a5e856b2ad8.tar.gz |
[lcd4linux @ 2003-07-24 04:48:09 by reinelt]
'soft clear' needed for virtual rows
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@202 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'USBLCD.c')
-rw-r--r-- | USBLCD.c | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: USBLCD.c,v 1.9 2003/04/04 06:01:59 reinelt Exp $ +/* $Id: USBLCD.c,v 1.10 2003/07/24 04:48:09 reinelt Exp $ * * Driver for USBLCD ( see http://www.usblcd.de ) * This Driver is based on HD44780.c @@ -22,6 +22,9 @@ * * * $Log: USBLCD.c,v $ + * Revision 1.10 2003/07/24 04:48:09 reinelt + * 'soft clear' needed for virtual rows + * * Revision 1.9 2003/04/04 06:01:59 reinelt * new parallel port abstraction scheme * @@ -190,19 +193,20 @@ static void USBLCD_define_char (int ascii, char *buffer) } -int USBLCD_clear (void) +int USBLCD_clear (int full) { int row, col; - + for (row=0; row<Lcd.rows; row++) { for (col=0; col<Lcd.cols; col++) { Txt[row][col]='\t'; } } - + bar_clear(); - - USBLCD_command (0x01); // clear display + + if (full) + USBLCD_command (0x01); // clear display return 0; } @@ -251,7 +255,7 @@ int USBLCD_init (LCD *Self) bar_add_segment( 0, 0,255, 32); // ASCII 32 = blank bar_add_segment(255,255,255,255); // ASCII 255 = block - USBLCD_clear(); + USBLCD_clear(1); USBLCD_send(); return 0; |