diff options
author | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-03-15 03:48:49 +0000 |
---|---|---|
committer | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-03-15 03:48:49 +0000 |
commit | 446db7af452c781f700c9313bca2335eecec2c45 (patch) | |
tree | 0cde19b6de7a22173626a98a1bea49a134a5ebc9 /drv_picoLCDGraphic.c | |
parent | 981ce7826f0adac940b0a01ee05224876b70424b (diff) | |
download | lcd4linux-446db7af452c781f700c9313bca2335eecec2c45.tar.gz |
allow fine-grained backlight control for picoLCDGraphic
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1181 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_picoLCDGraphic.c')
-rw-r--r-- | drv_picoLCDGraphic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drv_picoLCDGraphic.c b/drv_picoLCDGraphic.c index f3a98c9..fa7e15b 100644 --- a/drv_picoLCDGraphic.c +++ b/drv_picoLCDGraphic.c @@ -432,8 +432,8 @@ static int drv_pLG_backlight(int backlight) if (backlight < 0) backlight = 0; - if (backlight >= 1) - backlight = 200; + if (backlight > 255) + backlight = 255; cmd[1] = backlight; drv_pLG_send(cmd, 2); |