aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/lcd4linux
diff options
context:
space:
mode:
authorjmccrohan <jmccrohan@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2017-05-27 17:37:05 +0000
committerjmccrohan <jmccrohan@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2017-05-27 17:37:05 +0000
commitcb69a93a4501b2a58e1f991c953b3c58d6ceeb67 (patch)
tree94aa584f67a541435d06f0f375e40f2f0e5f9ff6 /documentation/lcd4linux
parent4e055ed9cbda058f02f81571cc31e4cd6ef9afc2 (diff)
downloadlcd4linux-trunk.tar.gz
picoLCDGraphic: change backlight from bool to byteHEADtrunkmaster
Based on patch submitted by Mike Edwards <pf-debian-bugs@mirkwood.net> to Debian Bug #861993 (https://bugs.debian.org/861993). See excerpt from bug report below. ----------------------------------------- Dear Maintainer, Using driver 'picoLCDGraphic' in lcd4linux.conf, backlight can only be set to 0 or 1 (off/on). While the backlight of the picolcd is on at boot, the moment lcd4linux starts, the backlight turns off with either setting. Looking at the source for the driver, I found that somewhere along the line, the function to set the backlight had been changed to use an 8 bit value from 0 - 255, effectively making this a brightness setting: static int drv_pLG_backlight(int backlight) { unsigned char cmd[2] = { 0x91 }; /* set backlight */ if (backlight < 0) backlight = 0; if (backlight > 255) backlight = 255; cmd[1] = backlight; drv_pLG_send(cmd, 2); return backlight; } ... but the config option for backlight was still limited to only accepting a 0 or 1: if (cfg_number(section, "Backlight", 0, 0, 1, &value) > 0) { info("Setting backlight to %d", value); drv_pLG_backlight(value); } I've patched that if statement above to accept values between 0 and 255. Now, setting the config option for backlight to 255 in lcd4linux.conf does result in the backlight being turned on at full brightness. ----------------------------------------- Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1204 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'documentation/lcd4linux')
0 files changed, 0 insertions, 0 deletions
0200'>2010-05-23update scan file for fr-NantesChristoph Pfister1-6/+7 submitted by biribi free.fr 2010-05-23update scan file for fr-Lille-BouvignyChristoph Pfister3-43/+26 and remove obsoleted files submitted by romain romain-bajeux.com 2010-05-19update scan file for fr-LavalChristoph Pfister1-6/+6 submitted by hftom free.fr 2010-05-19update scan file for fr-NantesChristoph Pfister1-6/+6 submitted by matpic free.fr 2010-05-16update scan file for de-HamburgChristoph Pfister1-0/+1 submitted by toralf.foerster gmx.de 2010-05-09update scan file for de-UnitymediaChristoph Pfister1-8/+9 2010-05-02update scan file for hr-AllChristoph Pfister1-1/+1 submitted by samuel.rakitnican gmail.com 2010-04-29update scan file for de-PrimacomChristoph Pfister1-0/+5 submitted by robert.wohlrab gmx.de 2010-04-29update scan file for dk-AllChristoph Pfister1-5/+11 submitted by rk.katana.steel gmail.com 2010-04-29update scan file for fi-TurkuChristoph Pfister1-1/+7 submitted by miika vesti.fi 2010-04-29update scan file for uk-AberdareChristoph Pfister1-10/+15 submitted by redtux1 googlemail.com 2010-04-29update scan file for fr-NantesChristoph Pfister1-6/+6 submitted by debotux gmail.com