Question for anyone using the Slashdev LCD library
hello folks, have question has c experience and/or using slashdev lcd library @ http://www.slashdev.ca/arduino-lcd-library/
the lcd.print( ); command in library takes character or string argument , prints lcd. this works fine me when printing text directly or char message[] = "hello world!"; in application trying print member of array contained inside structure, such mystructure.element[0]. if try lcd.print(mystructure.element[0]); don't character or number stored in array printed lcd, looks i'm getting whatever character stored in lcd's lookup table @ equivalent binary address, might %, or random japanese characters - interesting, not want!
does have ideas on or possible workaround? :-?
the lcd.print( ); command in library takes character or string argument , prints lcd. this works fine me when printing text directly or char message[] = "hello world!"; in application trying print member of array contained inside structure, such mystructure.element[0]. if try lcd.print(mystructure.element[0]); don't character or number stored in array printed lcd, looks i'm getting whatever character stored in lcd's lookup table @ equivalent binary address, might %, or random japanese characters - interesting, not want!
does have ideas on or possible workaround? :-?
update: i've been in touch creator of lcd library i'm using, , found out library supported printing strings. however, kind enough modifications library supports printing integers contained in variables, structures, etc.
i find library more flexible 1 comes arduino environment because can change pin numbers inside sketch instead of going header file, can both lines in 2 line displays, , has functions support creating , using custom lcd characters creating bitmap , putting in array. and of course supports printing numeric variables
it's available at:
http://git.slashdev.ca/arduino-lcd/snapshot/lcdlib-0.4.zip
i find library more flexible 1 comes arduino environment because can change pin numbers inside sketch instead of going header file, can both lines in 2 line displays, , has functions support creating , using custom lcd characters creating bitmap , putting in array. and of course supports printing numeric variables

it's available at:
http://git.slashdev.ca/arduino-lcd/snapshot/lcdlib-0.4.zip
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Question for anyone using the Slashdev LCD library
arduino
Comments
Post a Comment