aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-03-04 04:08:56 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-03-04 04:08:56 +0000
commitde848dfdfa3749688993b19559ab5c5c2b262f00 (patch)
tree86a78ed1b7ae74b3183be558c4043aacae8ab001
parent9ca20cc5d81e141f8421178e9ab031a2ddebdb96 (diff)
downloadlcd4linux-de848dfdfa3749688993b19559ab5c5c2b262f00.tar.gz
add asc255bug setting to MatrixOrbital driver by Maik Dilger
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@990 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--drv_MatrixOrbital.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drv_MatrixOrbital.c b/drv_MatrixOrbital.c
index 97d273d..a503923 100644
--- a/drv_MatrixOrbital.c
+++ b/drv_MatrixOrbital.c
@@ -462,6 +462,7 @@ int drv_MO_init(const char *section, const int quiet)
{
WIDGET_CLASS wc;
int ret;
+ int asc255bug;
info("%s: %s", Name, "$Rev$");
@@ -496,8 +497,13 @@ int drv_MO_init(const char *section, const int quiet)
return ret;
/* add fixed chars to the bar driver */
+ /* most displays have a full block on ascii 255, but some have kind of */
+ /* an 'inverted P'. If you specify 'asc255bug 1 in the config, this */
+ /* char will not be used, but rendered by the bar driver */
+ cfg_number(section, "asc255bug", 0, 0, 1, &asc255bug);
drv_generic_text_bar_add_segment(0, 0, 255, 32); /* ASCII 32 = blank */
- drv_generic_text_bar_add_segment(255, 255, 255, 255); /* ASCII 255 = block */
+ if (!asc255bug)
+ drv_generic_text_bar_add_segment(255, 255, 255, 255); /* ASCII 255 = block */
/* initialize generic GPIO driver */
if ((ret = drv_generic_gpio_init(section, Name)) != 0)