Go Down

Topic: LCD 16 x 2 lcd.clear(); parameter (Read 1 time) previous topic - next topic


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


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


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


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  ]:)


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'.



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


oops, Sorry that make sense now lol

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131