LCD getting number of columns
Posted: Wed Sep 08, 2010 1:26 pm
Hello,
For a neat scrolling effect regarding the LCD, I'am in need of the Columns (and rows) used by the LCD. (16, 20, 40, 80)
So far I tried to use C Code and the variable %s_COLCNT (used by the LCD macro's) to assign to the flowcode variable Xp.
and to create a custom LCD macro getcol (return %s_COLCNT) also trying to assign it to the variable Xp.
even tried replacing the %s by the devicename (After compiling available in the .c file).
In common, how can I access the variable's used by the components?
attached file is a small attempt with no luck.
regards Frank
For a neat scrolling effect regarding the LCD, I'am in need of the Columns (and rows) used by the LCD. (16, 20, 40, 80)
So far I tried to use C Code and the variable %s_COLCNT (used by the LCD macro's) to assign to the flowcode variable Xp.
and to create a custom LCD macro getcol (return %s_COLCNT) also trying to assign it to the variable Xp.
even tried replacing the %s by the devicename (After compiling available in the .c file).
In common, how can I access the variable's used by the components?
attached file is a small attempt with no luck.
regards Frank