Go Down

Topic: LCD clear one character? (Read 2516 times) previous topic - next topic

bobbcab

I was wondering if it is possible to clear a single character on an LCD screen as I'm constantly updating the screen when i display a 2 digit number then show a single digit number the 2nd digit from the 2 digit number remains. I need to keep the rest of the information on the screen though.

Thanks in advance

RankUpGamers

Code: [Select]
lcd.setCursor(X,Y);
lcd.print(" ");


That's how I do it!
GO TECH!

Saad Khalil


Code: [Select]
lcd.setCursor(X,Y);
lcd.print(" ");


That's how I do it!

That's how we do it ;)
@ bobbcab.. If you want to clear and write something there then directly after setting cursor print that character instead of space.
Saad Khalil

bobbcab

Hahaha i didn't think of that, thanks guys

Arduino_thomas

This is not working for me  :( 




BTW: I use a Adafruit i2c 16x2 RGB
Arduino Programer :D

PaulS

Quote
This is not working for me

What isn't? Where is the code? What exactly happens?

tylernt

Code: [Select]

lcd.print(myNumber);
if(myNumber < 10)
 { lcd.print(" "); }


Go Up