Pages: [1]   Go Down
Author Topic: LCD clear one character?  (Read 2194 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
Uno R2! and a bunch of random LEDS and a lcd!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

That's how I do it!
Logged

GO TECH!

Pakistan
Offline Offline
Full Member
***
Karma: 0
Posts: 101
Advances are made by answering questions. Discoveries are made by questioning answers.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

That's how I do it!
That's how we do it smiley-wink
@ bobbcab.. If you want to clear and write something there then directly after setting cursor print that character instead of space.
Logged

Saad Khalil

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hahaha i didn't think of that, thanks guys
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
:D IM COOL
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is not working for me  smiley-sad 




BTW: I use a Adafruit i2c 16x2 RGB
Logged

Arduino Programer smiley-grin

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 653
Posts: 50883
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
This is not working for me
What isn't? Where is the code? What exactly happens?
Logged

Idaho, US
Offline Offline
Edison Member
*
Karma: 21
Posts: 1051
Special User
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: