View previous topic :: View next topic |
Author |
Message |
allr
Joined: 28 Sep 2006 Posts: 4
|
Read cursor position in a GLCD with t6963c driver |
Posted: Mon May 14, 2007 7:05 am |
|
|
Hello,
It is possible to read the position of the cursor, in text mode, of a GLCD with a T6963C controller?
Thanks |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon May 14, 2007 11:30 am |
|
|
I think the standard is to keep track of it yourself and then set it yourself to a given area. Code: | 5.6.2 To set the position of the cursor onscreen, use ‘CURSOR POINTER SET’
For example for the cursor at 24h across, 03h down
status check
1st data Xadrs 24h
status check
2nd data Yadrs 03h
status check
Command 21h |
That is from datasheet page 12. Set cursor pointer. command 0x21 |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon May 14, 2007 11:37 am |
|
|
Keep in mind that the cursor((blinking underline)) is not related to the datapointer((writebyte('A'))) displays an 'A'
ie: I can have the cursor at 0,0 and display text at 2,2. |
|
|
allr
Joined: 28 Sep 2006 Posts: 4
|
|
Posted: Tue May 15, 2007 1:13 am |
|
|
Thanks for the answer treitmey, but what really I want to know are, if there is some command or method to know the real position of the cursor, that is to say, to read the address of the cursor. |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Tue May 15, 2007 7:51 am |
|
|
Sorry, no way to do that. As far as I know. |
|
|
|