aboutsummaryrefslogtreecommitdiffstats
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
2015-07-12Replace non-portable datatypes with C99 versionsjmccrohan2-23/+25
Found during OpenWrt's migration from uClibc to musl. Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1203 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2015-06-18drv_HD44780: add 8bit i2c mode for HD44780 by Michael Grzeschik ↵michael3-40/+112
<m.grzeschik@pengutronix.de> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1202 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2014-09-06updated to automake 1.14.1michael5-9161/+1194
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1201 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-05-23autotools update (iconv?)michael4-126/+10999
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1200 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-05-23indentationmichael6-273/+277
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1199 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-05-23DPF patch by superelchimichael3-110/+549
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1198 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-05-15raspi: Disabled unless explicitly enabled by userjmccrohan1-0/+15
Add a raspi enabled stanza to lcd4linux.conf file to enable: Plugin raspi { enabled 1 } Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1197 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-03-10disable plugin sensors if not foundvolker4-8594/+37
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1196 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-02-19new plugin raspivolker8-4116/+3551
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1195 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-02-13added new examples to config filevolker1-3/+15
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1194 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-02-13Ticket #284volker2-8/+19
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1193 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2013-02-13stabilize text widget when no string is available; info message when ↵volker3-1/+10
serdisplib cannot open port git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1192 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-06-23widget_timer: oops, forgot to update includes...mzuther1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1191 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-06-23widget_timer: timer widgets should not abuse timer groups (fixes ticket #278)mzuther1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1190 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-05-19Mitigate format string exploitsjmccrohan3-5/+5
error: format not a string literal and no format arguments [-Werror=format-security] Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1189 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-05-12Add drv_generic_serial.c functions to header filejmccrohan1-0/+2
New functions were added in rev1171, but were not added to drv_generic_serial.h Fixes Debian buildd [-Wimplicit-function-declaration] warnings. Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1188 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-04-09typo fix from Robert Reschmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1187 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-04-09patch to support hex sequences from Marcus Menzelmichael1-0/+38
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1186 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-03-26Fixed realloc error handling in timer_group.c; changed the interval member ↵mjona6-1729/+8764
in the TIMER_GROUP structure from int* to int. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1185 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-03-26handle failing realloc() correctly (thanks to Mattia)michael2-52/+20
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1184 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-03-26changed error() to info() to avoid syslog floodingmichael1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1183 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-03-23timer activation: use defines instead of integers for easier readingmzuther3-23/+26
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1182 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-03-15allow fine-grained backlight control for picoLCDGraphicmichael4-8500/+1461
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1181 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-27jpeglib dependency typo fixedmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1180 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-23drv_SamsungSPF.h removedmichael1-0/+0
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1179 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-23some fixes from Sascha Plazarmichael5-3043/+1446
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1178 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-22driver for Samsung SPF by Sascha Plazarmichael10-3/+642
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1177 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-21driver for Futaba VFD by Marcus Menzelmichael9-4/+484
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1176 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-16teakLCM set GPIO='no' which produced linker errors (thanks to Marcus menzel ↵michael1-1/+0
for reporting) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1175 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-15default model chnaged from 'generic' to 'M50530'michael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1174 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-14driver for TeakLCM by Andreas Thienemannmichael10-33/+1113
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1173 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-02-10patch from Robert Tesch: support KIT120-5 and KIT129-6, GPO code repaired, ↵michael1-20/+58
use Scalefont git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1172 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-01-16Patch for Driver EA232Graphic by Robert Reschmichael2-7/+70
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1171 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-01-16scaletext patch from Stefan Kuhnemichael2-4/+16
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1170 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-01-16update to automake 1.11.2michael3-44/+78
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1169 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-01-08DPF driver by Stefan Kuhne 8note that you need libdpf)michael9-4/+337
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1168 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-01-08[PATCH 2/2] gcc warnings by Jonathan McCrohanmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1167 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2012-01-08ATCH 1/2] gcc warnings by Jonathan McCrohanmichael1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1166 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-12-26old ancient legacy port access disabled by defaultmichael6-162/+491
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1165 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-12-22All compilation related issues in the headers have been fixed. Now each ↵mjona10-0/+11
header compiles with no warnings as a standalone file. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1164 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-12-09Replaced parameter NoPowerCycle with PowerCyclesonic741-5/+5
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1163 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-12-09Blit speedup, switch PICASO back to 9600 baud when exitingsonic741-47/+46
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1162 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-12-08Removed compiler warningsonic741-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1161 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-12-08SGC supportsonic741-111/+254
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1160 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-08-31Fix spelling errors. Flagged by Debian lintian checkjmccrohan4-4/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1159 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-07-28driver for Futaba MDM166A Graphic(96x16) vf-displays by Andreas Bracholdmichael9-2/+684
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1158 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-07-27driver for Newhaven's NHD‐0420D3Z‐FL‐GBW. 4x20 LCD by Rusty Clarksonmichael9-4/+573
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1157 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-07-27indentation :-(michael1-3/+3
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1156 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-07-27magic bold escape char by Andrew Thompsonmichael1-1/+9
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1155 3ae390bd-cb1e-0410-b409-cd5a39f66f1f