diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-01-05 18:56:57 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-01-05 18:56:57 +0000 |
commit | 0ed6f3564184cf27d9ad918200d43604c8582d93 (patch) | |
tree | 09ed20cfdf721e57ca25050644eed1c717c2f2e7 /drv_Sample.c | |
parent | e344d6c788a59a77119b99db41f2699a2d72b75f (diff) | |
download | lcd4linux-0ed6f3564184cf27d9ad918200d43604c8582d93.tar.gz |
[lcd4linux @ 2006-01-05 18:56:57 by reinelt]
more GPO stuff
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@608 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_Sample.c')
-rw-r--r-- | drv_Sample.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drv_Sample.c b/drv_Sample.c index 09efd50..813ddd3 100644 --- a/drv_Sample.c +++ b/drv_Sample.c @@ -1,4 +1,4 @@ -/* $Id: drv_Sample.c,v 1.2 2005/12/19 05:08:31 reinelt Exp $ +/* $Id: drv_Sample.c,v 1.3 2006/01/05 18:56:57 reinelt Exp $ * * sample lcd4linux driver * @@ -23,6 +23,9 @@ * * * $Log: drv_Sample.c,v $ + * Revision 1.3 2006/01/05 18:56:57 reinelt + * more GPO stuff + * * Revision 1.2 2005/12/19 05:08:31 reinelt * GPO's added to the Sample driver * @@ -243,7 +246,7 @@ static void drv_Sample_blit(const int row, const int col, const int height, cons static int drv_Sample_GPO(const int num, const int val) { char cmd[4]; - + /* assume 0x42 to be the 'GPO' command */ cmd[0] = 0x42; cmd[1] = num; @@ -559,12 +562,12 @@ int drv_Sample_quit(const int quiet) drv_generic_text_quit(); + /* remove unless you have GPO's */ + drv_generic_gpio_quit(); + /* clear display */ drv_Sample_clear(); - /* remove unless you have GPO's */ - drv_generic_gpio_clear(); - /* say goodbye... */ if (!quiet) { drv_generic_text_greet("goodbye!", NULL); @@ -587,7 +590,7 @@ int drv_Sample_quit2(const int quiet) drv_generic_graphic_clear(); /* remove unless you have GPO's */ - drv_generic_gpio_clear(); + drv_generic_gpio_quit(); /* say goodbye... */ if (!quiet) { |