aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <>2005-01-17 06:38:48 +0000
committerreinelt <>2005-01-17 06:38:48 +0000
commit47329b6aa4a64ea94fdf83061a91e5a3cbf7c9bb (patch)
tree71d2b55f148b710bbb35dba8f8a4bc6b46c87021
parent444e8ec2669f2c1814084609a21ff42cd1513f4f (diff)
downloadlcd4linux-47329b6aa4a64ea94fdf83061a91e5a3cbf7c9bb.tar.gz
[lcd4linux @ 2005-01-17 06:38:48 by reinelt]
info about backlight and brightness
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);
}
}