Pages: [1]   Go Down
Author Topic: LCD 16 x 2 lcd.clear(); parameter  (Read 966 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys
I am displaying voltage, frequency and charging status

I am only conserned about charging status controlled via switch manual switch
it is either ON or OFF
I got it do what I want
only problem is
when it first runs and when it ON it will display
ON at lcd.setCursor(1, 1);
and when switch is OFF it displays OFF
and filliping switch back to ON it will display ONF
and when I do lcd.clear();
it clears the whole lcd screen every milli or something second
and this affects my voltage my voltage display I can barley read the number coz it is clearing whole screen.

is there a way that I can only clear certain parameters of the screen or just bottom line of line instead of whole screen
thank you
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

nevermind
I figured it out myself,
instead of putting clear code in different place in void loop for multiple time
I just put it once right after loop starts

if someone still has way to clear lcd by parameter that could help in future
thanx
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 73
Posts: 7197
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Use "ON " and "OFF". Notice there is a blank space in the "ON ". That space will erase the second F in the "OFF".
Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey
no man I do not have space after ON
it is just painting over again without clearing it means lcd
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 73
Posts: 7197
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, painting over. Many people do this. It's easy and fast  smiley-evil
Logged


Western New York, USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 4327
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
no man I do not have space after ON
He is telling you to add a space to make a total of three characters.  That way the three characters will completely replace the three characters in 'OFF'.

Don
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 73
Posts: 7197
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, that was what I tried to tell the OP.
Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oops, Sorry that make sense now lol
thanx.
Logged

Pages: [1]   Go Up
Jump to: