aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-01-17 06:38:48 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-01-17 06:38:48 +0000
commit1f29316bdf4df65aed92770d0c440e0984ef1086 (patch)
tree71d2b55f148b710bbb35dba8f8a4bc6b46c87021
parentf25e145be4d7ebe0c3b6803acf8521d5b2d8b1a1 (diff)
downloadlcd4linux-1f29316bdf4df65aed92770d0c440e0984ef1086.tar.gz
[lcd4linux @ 2005-01-17 06:38:48 by reinelt]
info about backlight and brightness git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@508 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--drv_HD44780.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drv_HD44780.c b/drv_HD44780.c
index 3cc9197..fb1baff 100644
--- a/drv_HD44780.c
+++ b/drv_HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: drv_HD44780.c,v 1.41 2005/01/17 06:29:24 reinelt Exp $
+/* $Id: drv_HD44780.c,v 1.42 2005/01/17 06:38:48 reinelt Exp $
*
* new style driver for HD44780-based displays
*
@@ -29,6 +29,9 @@
*
*
* $Log: drv_HD44780.c,v $
+ * Revision 1.42 2005/01/17 06:38:48 reinelt
+ * info about backlight and brightness
+ *
* Revision 1.41 2005/01/17 06:29:24 reinelt
* added software-controlled backlight support to HD44780
*
@@ -1133,6 +1136,7 @@ static int drv_HD_start (const char *section, const int quiet)
if (Capabilities & CAP_BACKLIGHT) {
int backlight;
if (cfg_number(section, "Backlight", 0, 0, 1, &backlight) > 0) {
+ info ("%s: backlight %s", Name, backlight ? "enabled" : "disabled");
drv_HD_backlight(backlight);
}
}
@@ -1141,6 +1145,7 @@ static int drv_HD_start (const char *section, const int quiet)
if (Capabilities & CAP_BRIGHTNESS) {
int brightness;
if (cfg_number(section, "Brightness", 0, 0, 3, &brightness) > 0) {
+ info ("%s: brightness level %d", Name, brightness);
drv_HD_brightness(brightness);
}
}