diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-02-02 05:22:16 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-02-02 05:22:16 +0000 |
commit | ca0e71b4883b9917d8d75b69016d31b1ed661eb6 (patch) | |
tree | 1c8427393612acc41d65e2f0b969f0ecc367403b | |
parent | bd18f40ab4b208bbe3dfc1ac31c10236a6e46ee1 (diff) | |
download | lcd4linux-ca0e71b4883b9917d8d75b69016d31b1ed661eb6.tar.gz |
[lcd4linux @ 2004-02-02 05:22:16 by reinelt]
Brightness fpr Noritake Displays avaliable as a plugin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@353 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | drv_HD44780.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/drv_HD44780.c b/drv_HD44780.c index 371adec..30a848e 100644 --- a/drv_HD44780.c +++ b/drv_HD44780.c @@ -1,4 +1,4 @@ -/* $Id: drv_HD44780.c,v 1.9 2004/02/01 11:51:22 hejl Exp $ +/* $Id: drv_HD44780.c,v 1.10 2004/02/02 05:22:16 reinelt Exp $ * * new style driver for HD44780-based displays * @@ -29,6 +29,9 @@ * * * $Log: drv_HD44780.c,v $ + * Revision 1.10 2004/02/02 05:22:16 reinelt + * Brightness fpr Noritake Displays avaliable as a plugin + * * Revision 1.9 2004/02/01 11:51:22 hejl * Fixes for busy flag * @@ -637,6 +640,15 @@ static int drv_HD_start (char *section) // **************************************** +static void plugin_brightness (RESULT *result, RESULT *arg1) +{ + double brightness; + + brightness=drv_HD_brightness(R2N(arg1)); + SetResult(&result, R_NUMBER, &brightness); +} + + // **************************************** // *** widget callbacks *** // **************************************** @@ -725,7 +737,8 @@ int drv_HD_init (char *section) widget_register(&wc); // register plugins - // Fixme: plugins for HD44780? + if (Capabilities & CAP_BRIGHTNESS) + AddFunction ("brightness", 1, plugin_brightness); return 0; } |