LCD 16 x 2 lcd.clear(); parameter

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

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

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

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

Yes, painting over. Many people do this. It's easy and fast ]:slight_smile:

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

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

oops, Sorry that make sense now lol
thanx.