Hi,
i am using the normal LCD library. I looked through this thing, but couldnt find any real value for the current cursor position.
I know you can set it with setCursor(); but is there a way to get this value back?
As far as i know, you need to keep track of the cursor position yourself.
I know you can set it with setCursor(); but is there a way to get this value back?
This capability is part of the LCD controller (HD44680U) Instruction Set but it is not implemented or even possible to implement in the current LiquidCrystal library.
The instruction that returns the LCD 'busy flag' also returns the current address of the cursor.
If you have a library that implements LCD pin 5 (R/W) in order to read the 'busy flag' then that code may also return (and ignore) the address. Many implementations, including mine, look only for the busy flag so that code would have to be modified somewhat to also return the cursor address.
You can find my code by following the obvious links at http://web.alfredstate.edu/weimandn.
Don