Hey guys,
new to the forum, am doing a project and having problems with the LCD. I have tried searching in the forums for a solution but i couldnt find exactly what i was looking for. I am using an RHT03 sensor a 16x2 lcd and arduino uno board with atmega8-p chip. i used the examples to build a code to display the status of the sensor, the humidity and the temperature. The problem is when i remove the sensor wires to check if the code is working correctly (it will show error messages on LCD) the lcd displays the error messages but when everything is back to original position, part of the error messages remain on the blocks which are not being used.
i am at home and the code is at university computer so i cannot share the full code and uni computers wont let me login to this forum (cookies not enabled), so the part of code is
...condition code here...
lcd.setCursor (0, 1);
lcd.print("OK");
...second condition code here...
lcd.setCursor(0,1);
lcd.print("CHKSM");
now when the OK condition is fulfilled (everything back to original position) the LCD displays "OKKSM". i tried lcd.clear but it messes up the whole thing. the solution to this problem, which just came to my mind, could be that i change the lcd.print("OK"); to lcd.print("OK "); three spaces will take care of this. But the same thing happens to humidity and temperature readouts and i cannot do the same to them.
if any one can help me asap i would very much appreciate it.
regards