Shop OBEX P1 Docs P2 Docs Learn Events
Hide Cursor on Parallax 2x16 Serial LCD (Backlit) — Parallax Forums

Hide Cursor on Parallax 2x16 Serial LCD (Backlit)

NautilusclNautiluscl Posts: 3
edited 2013-02-15 06:43 in General Discussion
Hi!

I want to hide the cursor ( _ ) in my LCD ( #27977 Parallax 2x16 Serial LCD (Backlit) REV F) i send the "4" char but dont work
' {$STAMP BS2}
' {$PBASIC 2.5}


TxPin     CON   0
n9600     CON   84


HIGH TxPin                       ' Set serial pin port high
PAUSE 100                        ' Pause to initialize
SEROUT TxPin, n9600, [12, 17]    ' Clear, turn on backlight
PAUSE 100
SEROUT TxPin, n9600, [12, 4]     ' Hide Cursor?
SEROUT TxPin, n9600, ["Test"]    ' Print text, line feed



Any help?

Comments

  • RDL2004RDL2004 Posts: 2,554
    edited 2013-02-14 13:28
    edit:

    Hi, just noticed it was your first post, welcome.

    4? That won't work.


    Here are the commands from the manual
    4  Display custom character 4
    
    22  Turn the display on, with cursor off and no blink
    
    23  Turn the display on, with cursor off and character blink
    
    24  Turn the display on, with cursor on and no blink (Default)
    
    25  Turn the display on, with cursor on and character blink
    

    Try sending 22, that was the only way I ever used mine and it always worked.
    Also, when you send a 12 command you should follow with a short 5 msec pause every time or there may be problems.
    Good luck.
  • NautilusclNautiluscl Posts: 3
    edited 2013-02-15 06:43
    Thanks! code 22 worked!
Sign In or Register to comment.