Object Request for item #29121
Pliers
Posts: 280
Hurray! Got it working.
I read this forum every day, but I'm not knowledgeable enough to make any worthy contributions.
I'm working on it though, and I would like to make a contribution to the object exchange one day.
I Purchased the LCD AppMod #29121, but can't figure how to use it.
I looked at all the documentation I could find. The only sample software I could find is written for the Basic Stamp.
I need to know how to send a string of characters to the display.
I can read buttons.
Addition information concerning the hows and whys would be appreciated.
Once again I love this forum and I plan to do great things with the Propeller.
1110001110001110110101010000111110001110001110010101011
I read this forum every day, but I'm not knowledgeable enough to make any worthy contributions.
I'm working on it though, and I would like to make a contribution to the object exchange one day.
I Purchased the LCD AppMod #29121, but can't figure how to use it.
I looked at all the documentation I could find. The only sample software I could find is written for the Basic Stamp.
I need to know how to send a string of characters to the display.
I can read buttons.
Addition information concerning the hows and whys would be appreciated.
Once again I love this forum and I plan to do great things with the Propeller.
1110001110001110110101010000111110001110001110010101011
Comments
For instance:
obex.parallax.com/objects/106/
Massimo
I did look at that object.
I'll look at it again.
Check www.parallax.com/tabid/781/Default.aspx
I think the September 2009 issue might suit you...
Massimo
The code below works, but how can I keep it from scrolling?
Also, it would be nice to be able to use both rows on the LCD display.
Thanks.
con
_CLKMODE = XTAL1 + PLL16X
_XINFREQ = 5_000_000
LCDBasePin = 1
obj
LCD: "BenkyLCDdriver"
pub main | i
LCD.start( LCDBasePin,0 )
LCD.exec( LCD#CMD_SETLINE,string("test ") )
Here is the code I used
con
_CLKMODE = XTAL1 + PLL16X
_XINFREQ = 5_000_000
LCDBasePin = 1
obj
LCD: "BenkyLCDdriver"
pub main | i
LCD.start( LCDBasePin,0 )
printTopLine( string("12345678") )
printLowerLine( string("ABCDEFGH") )
PUB printTopLine( s )
LCD.exec( LCD#CMD_INSTR, %10000000 )
LCD.exec( LCD#CMD_PRINT, s )
PUB printLowerLine( s )
LCD.exec( LCD#CMD_INSTR, %10000000 + $40)
LCD.exec( LCD#CMD_PRINT, s )
The driver I wrote (BenkyLCDdriver) is a little bit tricky to use, as you have to know how such a display works - or better how the instructions such a display receives have to look like. The constants give a little support and a set of functions with meaningfull names would be easier. But each function "wastes" memory and I don't need that comfort, so the driver only needs an exec function and you have to squeeze all needed parameters into the long you pass in the exec function.
But the set of demo-programs included in the ZIP should show how all the functions of the driver work.
HAve you been able to pick up the button presses from the #29121?