aboutsummaryrefslogtreecommitdiffstats
path: root/drv_picoLCDGraphic.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-05-27picoLCDGraphic: change backlight from bool to byteHEADtrunkmasterjmccrohan1-1/+1
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
2012-03-15allow fine-grained backlight control for picoLCDGraphicmichael1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1181 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-07-27various compiler warnings fixedmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-02-12timer.c: fixed detection of positive clock skew (and some typos)mzuther1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1143 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-05-17Ticket #184 (LCD::contrast and LCD::backlight segfaulting) fixedmichael1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1120 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-04-22drv_picoLCDGraphic.c: changed two annoying info messages to debugging messagesmzuther1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1119 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-04-18drv_picoLCDGraphic.c: alternative use of keypad widgets (instead of GPIO)mzuther1-2/+78
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1118 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-15drv_picoLCDGraphic.c: minimum USB read timeout is now 1 msmzuther1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1114 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-14drv_picoLCDGraphic.c: added configuration for USB read timeoutmzuther1-1/+9
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1113 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-24picoLCDGraphic: update display regularly using a timer (*much* faster than ↵mzuther1-2/+30
redrawing the whole display after each changed widget; you may get the old behaviour by setting "Update 0") git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1094 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-21* Fix segfault on shutdown in drv_picoLCDGraphic.cedman0071-2/+2
* Prevent dbus from exiting the program when compiled with -DDEBUG git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1068 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28patch for picoLCDGraphics that adds keypad/gpi/gpo capabilities from Nicu Pavelmichael1-5/+30
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@985 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-10-07Replace write to external variable usb_debug by calling usb_set_debug().bwalle1-2/+1
This fixes build on openSUSE Factory. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@899 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-10-06properties fixedmichael1-3/+3
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@897 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-07-15forgot to add drv_picoLCDGraphic.c :-(michael1-0/+613
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@882 3ae390bd-cb1e-0410-b409-cd5a39f66f1f