Go Down

Topic: How to set the cursor on the LCD using a variable? (Read 1 time) previous topic - next topic


lcd.setCursor(set, 0) doesn't work eiter, i'm getting no print out at all.


lcd.setCursor(col, row) does what it sounds like. Sets the cursor position on the lcd.
The next character printed will be placed at that location.
Your code never prints any characters which is why you never see anything.
It reads a character from the serial port then uses the numeric code of that character to
set the cursor position to that column on row zero.

Have quick read of the LiquidCrystal functions to get a better feel of the
routines available to see what will do what you want.

--- bill


So now you showed us what you have and what is "not working", what is it that you want? You sound like a customer scrolling into a shop and just can't describe to the clerk what you are in the store for. You won't be treated nicely after a while.


Dec 09, 2012, 04:17 am Last Edit: Dec 09, 2012, 08:56 am by bperrybap Reason: 1
One thing you might not be aware of is by default the actual cursor is invisible.
If you want to see the cursor the cursor() function will turn it on.

--- bill


Serial read returns the ASCII value of the character sent. So if you send a 1 then number you recieve is 39, so when you do that right the cursor will move to position 39. Will you be able to see that?

Go Up