Shop OBEX P1 Docs P2 Docs Learn Events
LCD Panel help — Parallax Forums

LCD Panel help

ArchiverArchiver Posts: 46,084
edited 2004-04-01 17:34 in General Discussion
Hi,
I am working with my students on the BPI-216 Serial LCD Module. I have
programmed and worked the first line very easily but the second line is
being difficult. I also wondered if the lines could scroll and how to
do that. Here is the one line program I am working with:
'{$stamp BS2}

N9600 Con $4054
I Con 254
Clr Con 1
Line2 Con 192
L1_C7 Con 135

Serout 7,N9600,[noparse][[/noparse]I,CLR]
Serout 7,N9600,[noparse][[/noparse]"Robots are fun"]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 05:34
    --- In basicstamps@yahoogroups.com, "MARK DEVINE" <mdevine@s...>
    wrote:
    >
    > Hi,
    > I am working with my students on the BPI-216 Serial LCD Module.
    > I have programmed and worked the first line very easily but the
    > second line is being difficult.

    According to the documentation at
    http://www.parallax.com/dl/docs/prod/audiovis/2x16seriallcd.pdf, you
    would simply do

    Serout 7,N9600,[noparse][[/noparse]I,LINE2]
    Serout 7,N9600,[noparse][[/noparse]"Don't you think?"]

    > I also wondered if the lines could scroll and how to do that.

    According to the information at
    http://www.melabs.com/products/bp216N.htm, you can scroll the display
    one character at a time left or right (commands 24 and 28). I don't
    know if this means that both lines move in unison or if when
    scrolling left the leftmost character of the second line becomes the
    rightmost character of the first line. If the latter is the case,
    you could effectively scroll up and down by scrolling left and right
    by 16 characters. You may want to turn the display off while this is
    happening.
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 09:30
    Thanks Don,
    I have gone through both websites and tried your example but to no
    avail. Can anyone lead me to a nuts and volts article or Wam experiment
    with command help?
    Thanks Mark

    Original Message
    From: Don Kinzer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=2xUiaAAHAJHgstyQ6w9tBlNLpvEUNZaWU4x0YGX9-lb4Yx7OJOE9tKuHQLdEG1ofZfbMz5fqiHqNJttV8g]dkinzer@e...[/url
    Sent: Thursday, April 01, 2004 12:34 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: LCD Panel help

    --- In basicstamps@yahoogroups.com, "MARK DEVINE" <mdevine@s...>
    wrote:
    >
    > Hi,
    > I am working with my students on the BPI-216 Serial LCD Module.
    > I have programmed and worked the first line very easily but the
    > second line is being difficult.

    According to the documentation at
    http://www.parallax.com/dl/docs/prod/audiovis/2x16seriallcd.pdf, you
    would simply do

    Serout 7,N9600,[noparse][[/noparse]I,LINE2]
    Serout 7,N9600,[noparse][[/noparse]"Don't you think?"]

    > I also wondered if the lines could scroll and how to do that.

    According to the information at
    http://www.melabs.com/products/bp216N.htm, you can scroll the display
    one character at a time left or right (commands 24 and 28). I don't
    know if this means that both lines move in unison or if when
    scrolling left the leftmost character of the second line becomes the
    rightmost character of the first line. If the latter is the case,
    you could effectively scroll up and down by scrolling left and right
    by 16 characters. You may want to turn the display off while this is
    happening.





    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 10:06
    At 04:30 PM 4/1/04 +0800, MARK DEVINE wrote:
    >Thanks Don,
    >I have gone through both websites and tried your example but to no
    >avail. Can anyone lead me to a nuts and volts article or Wam experiment
    >with command help?
    >Thanks Mark

    Mark -

    Do you have the SEETRON BPI-216 datasheet (BPI_BPK.PDF) ? If not, you'll find
    it an invaluable resource for working with that unit. The PDF can be downloaded
    here: http://www.seetron.com/slcds.htm .

    Note carefully the comments about positioning the cursor, and that all
    alpha-numeric LCD modules having 80 bytes of internal memory (Page 4 of the
    PDF). Also look carefully at the definition of LINE2 in the Stamp II
    demonstration program provided. This establishes the cursor positions for the
    second line of text.
    Line 1 character 0 = 128 and Line 2 character 0 = 192 ... Aha he said :-)

    Scrolling requires the use of codes 24 and/or 28, as noted in the datasheet.
    Once those concepts are implemented the rest should be easy going.

    Regards,

    Bruce Bates
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 13:19
    Put a pause in between the lines. The CLR takes time on that LCD.

    Original Message
    From: MARK DEVINE [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=q2J5S0P5sqsXxZ2SkjhRdpDEW3Pdr8qV_EWfAgCjCO7aCl28xBJJ3jwhnz6g9Qcdz79N1D99r2OtWJnj]mdevine@s...[/url
    Sent: Wednesday, March 31, 2004 11:06 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] LCD Panel help


    Hi,
    I am working with my students on the BPI-216 Serial LCD Module. I have
    programmed and worked the first line very easily but the second line is
    being difficult. I also wondered if the lines could scroll and how to
    do that. Here is the one line program I am working with:
    '{$stamp BS2}

    N9600 Con $4054
    I Con 254
    Clr Con 1
    Line2 Con 192
    L1_C7 Con 135

    Serout 7,N9600,[noparse][[/noparse]I,CLR]
    Serout 7,N9600,[noparse][[/noparse]"Robots are fun"]


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.

    Yahoo! Groups Links
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 17:30
    You need to PAUSE at least one millisecond after a ClearScr command to
    the BPI-216 when using 9600 baud. This is the nature of LCDs.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: MARK DEVINE [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=SDk_MmwGZzwTGHu-bkP7Gg3A2yt-p5PRW-e9yMNssnrCgDSAfa4WYPnEzt38Q-BdPeWAz-RAEWWK]mdevine@s...[/url
    Sent: Wednesday, March 31, 2004 10:06 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] LCD Panel help



    Hi,
    I am working with my students on the BPI-216 Serial LCD Module. I have
    programmed and worked the first line very easily but the second line is
    being difficult. I also wondered if the lines could scroll and how to
    do that. Here is the one line program I am working with: '{$stamp BS2}

    N9600 Con $4054
    I Con 254
    Clr Con 1
    Line2 Con 192
    L1_C7 Con 135

    Serout 7,N9600,[noparse][[/noparse]I,CLR]
    Serout 7,N9600,[noparse][[/noparse]"Robots are fun"]


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-01 17:34
    The SEETRON web site has docs with BS2 code. Does that not work? That
    said, Scott originated the "Stamp Applications" column so there are
    several articles that use his LCDs (some I wrote too). You'll just have
    to work your way through the PDFs on our web site.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: MARK DEVINE [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=EFjb6Xc6Xjdy9LYhwIM282lv7OHwCvU9cZOZJr7SJs32_G31MM6WsvkB6-g0s-UNcZS7gOZEHeIgAttJ4Q]mdevine@s...[/url
    Sent: Thursday, April 01, 2004 2:30 AM
    To: basicstamps@yahoogroups.com
    Subject: RE: [noparse][[/noparse]basicstamps] Re: LCD Panel help


    Thanks Don,
    I have gone through both websites and tried your example but to no
    avail. Can anyone lead me to a nuts and volts article or Wam experiment
    with command help? Thanks Mark

    Original Message
    From: Don Kinzer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=dEhzx1cf9x8x_pszyRXnrh5otyyzMhyGkAkYQFJu20M5UTplEmjmKLtYRFBh5doR61IgeYaukxXBfpIFlDAUuw]dkinzer@e...[/url
    Sent: Thursday, April 01, 2004 12:34 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: LCD Panel help

    --- In basicstamps@yahoogroups.com, "MARK DEVINE" <mdevine@s...>
    wrote:
    >
    > Hi,
    > I am working with my students on the BPI-216 Serial LCD Module. I have

    > programmed and worked the first line very easily but the second line
    > is being difficult.

    According to the documentation at
    http://www.parallax.com/dl/docs/prod/audiovis/2x16seriallcd.pdf, you
    would simply do

    Serout 7,N9600,[noparse][[/noparse]I,LINE2]
    Serout 7,N9600,[noparse][[/noparse]"Don't you think?"]

    > I also wondered if the lines could scroll and how to do that.

    According to the information at
    http://www.melabs.com/products/bp216N.htm, you can scroll the display
    one character at a time left or right (commands 24 and 28). I don't
    know if this means that both lines move in unison or if when
    scrolling left the leftmost character of the second line becomes the
    rightmost character of the first line. If the latter is the case,
    you could effectively scroll up and down by scrolling left and right
    by 16 characters. You may want to turn the display off while this is
    happening.





    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.