Shop OBEX P1 Docs P2 Docs Learn Events
Cursor position — Parallax Forums

Cursor position

Jan DvorakJan Dvorak Posts: 44
edited 2006-11-25 22:05 in BASIC Stamp
Hello,
I need to save·actual cursor position (into Byte variable) on parallel LCD display. I have BS2p24. I had tried it with LCDIN command, but I wasn't succesful. Is there any possibiliy how to solve my problem?
Thank you very much
Jan

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-25 22:05
    Jan,

    ·· On a Parallel LCD Display you can read the BUSY Flag/Address Register.· This is the information you need.· You will need to read this register and mask BIT7 to get the current address.· This address is affected by previous instructions and could be Data or CG, so if you only set your CGRAM once during initialization (or not at all) then you shouldn't have any problems.· Otherwise it will only be valid after a write to the Display RAM.· I hope this helps.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.