Shop OBEX P1 Docs P2 Docs Learn Events
Object Request for item #29121 — Parallax Forums

Object Request for item #29121

PliersPliers Posts: 280
edited 2010-10-15 21:13 in Propeller 1
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

Comments

  • max72max72 Posts: 1,155
    edited 2010-08-05 14:10
    Check the obex for the Hitachi HD44780, 4 bit mode. This way you should be able to control the display (but not checking the buttons). If everything works you have to mix up the button reading with the display control, but it would be a start.

    For instance:
    obex.parallax.com/objects/106/

    Massimo
  • PliersPliers Posts: 280
    edited 2010-08-05 14:19
    Thanks for the quick reply Max.
    I did look at that object.
    I'll look at it again.
  • max72max72 Posts: 1,155
    edited 2010-08-05 15:02
    I didn't test it, I'm using differnt displays, but the 4 bit Hitachi protocol is widely used, and a working object is a good start. If I remember correctly there was also an article on nuts and volts, using the propeller...
    Check www.parallax.com/tabid/781/Default.aspx
    I think the September 2009 issue might suit you...

    Massimo
  • PliersPliers Posts: 280
    edited 2010-08-06 07:50
    Anyone familiar with the BenkyLCDdriver?
    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 ") )
  • PliersPliers Posts: 280
    edited 2010-08-06 10:29
    Success.

    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 )
  • MagIO2MagIO2 Posts: 2,243
    edited 2010-08-06 14:39
    Did you try to chat with me? Sorry, but I did my first steps with the new forum system and clicked away your message before answering and could not find it again.

    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.
  • John KauffmanJohn Kauffman Posts: 653
    edited 2010-10-15 21:13
    Pliers:
    HAve you been able to pick up the button presses from the #29121?
Sign In or Register to comment.