Skip to content

Commit

Permalink
add asc255bug setting to MatrixOrbital driver by Maik Dilger
Browse files Browse the repository at this point in the history
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@990 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
  • Loading branch information
michael committed Mar 4, 2009
1 parent 9ca20cc commit de848df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drv_MatrixOrbital.c
Original file line number Diff line number Diff line change
Expand Up @@ -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$");

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit de848df

Please sign in to comment.