Shop OBEX P1 Docs P2 Docs Learn Events
Word Wrap on an LCD — Parallax Forums

Word Wrap on an LCD

Circuitbuilder9Circuitbuilder9 Posts: 85
edited 2012-04-05 08:34 in Propeller 1
Hi, guys.
I am in the middle of a propeller project (involving an LCD and keyboard), and i was wondering if there was any code on the OBEX or in the forums about word wrap. Any suggestions?
A word wrap feature, along with writing to a mSD card are going to be the final touches on my project, and i would lie to finish completely.

Comments

  • Circuitbuilder9Circuitbuilder9 Posts: 85
    edited 2012-04-03 12:12
    (posted this because it went off the page)
    Hi, guys.
    I am in the middle of a propeller project (involving an LCD and keyboard), and i was wondering if there was any code on the OBEX or in the forums about word wrap. Any suggestions?
    A word wrap feature, along with writing to a mSD card are going to be the final touches on my project, and i would lie to finish completely.
  • SRLMSRLM Posts: 5,045
    edited 2012-04-03 12:18
    What, specifically, do you want the code to do?
  • PaulPaul Posts: 263
    edited 2012-04-03 13:08
    And more specifically, what do you mean by "LCD". Parallax sells a 8x2 LCD but you probably would have to wrap each word on it. Too many unknowns at this point to give you much in the way of help. Please advise.
  • Circuitbuilder9Circuitbuilder9 Posts: 85
    edited 2012-04-03 13:28
    And more specifically, what do you mean by "LCD". Parallax sells a 8x2 LCD but you probably would have to wrap each word on it. Too many unknowns at this point to give you much in the way of help. Please advise.

    I am going to do this for a 4 x 20 LCD from parallax. In that, i would like to know how to word wrap. In any case, i would like to know how anyway.
  • tingotingo Posts: 87
    edited 2012-04-05 08:34
    I'm not sure what you are asking. The comcept is easy; you need to keep track of how many characters are left on your current line. You compare that with the next word you intend to print, if the word is longer (have more characters), you print it on the next line. Details on how to "keep track of characters left" and "prin on the next line" will (of course) vary with the type of display you use.
Sign In or Register to comment.