From 3daae37c43a92b9605220821ca62ca547fadf2b0 Mon Sep 17 00:00:00 2001 From: reinelt Date: Sat, 5 Jun 2004 14:56:48 +0000 Subject: [lcd4linux @ 2004-06-05 14:56:48 by reinelt] Cwlinux splash screen fixed USBLCD splash screen fixed plugin_i2c qprintf("%f") replaced with snprintf() git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@465 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_USBLCD.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'drv_USBLCD.c') diff --git a/drv_USBLCD.c b/drv_USBLCD.c index 28d7d00..d7d05c5 100644 --- a/drv_USBLCD.c +++ b/drv_USBLCD.c @@ -1,4 +1,4 @@ -/* $Id: drv_USBLCD.c,v 1.8 2004/06/05 06:41:40 reinelt Exp $ +/* $Id: drv_USBLCD.c,v 1.9 2004/06/05 14:56:48 reinelt Exp $ * * new style driver for USBLCD displays * @@ -26,6 +26,12 @@ * * * $Log: drv_USBLCD.c,v $ + * Revision 1.9 2004/06/05 14:56:48 reinelt + * + * Cwlinux splash screen fixed + * USBLCD splash screen fixed + * plugin_i2c qprintf("%f") replaced with snprintf() + * * Revision 1.8 2004/06/05 06:41:40 reinelt * * chancged splash screen again @@ -143,6 +149,8 @@ static void drv_UL_command (unsigned char cmd) static void drv_UL_clear (void) { drv_UL_command (0x01); // clear display + drv_UL_command (0x03); // return home + drv_UL_send(); // flush buffer } @@ -267,11 +275,8 @@ static int drv_UL_start (char *section, int quiet) drv_UL_command (0x08); // Display off, cursor off, blink off drv_UL_command (0x0c); // Display on, cursor off, blink off drv_UL_command (0x06); // curser moves to right, no shift - drv_UL_clear(); // clear display - drv_UL_command (0x03); // return home - // flush buffer - drv_UL_send(); + drv_UL_clear(); // clear display if (!quiet) { char buffer[40]; @@ -279,7 +284,6 @@ static int drv_UL_start (char *section, int quiet) if (drv_generic_text_greet (buffer, "http://www.usblcd.de")) { sleep (3); drv_UL_clear(); - drv_UL_send(); } } @@ -400,9 +404,6 @@ int drv_UL_quit (void) // say goodbye... drv_generic_text_greet ("goodbye!", NULL); - - // flush buffer - drv_UL_send(); debug ("closing port %s", Port); close(usblcd_file); -- cgit v1.2.3