Hi,
Can anyone tell me how to clear the LCD once in a loop and just carry on with the rest of the code?
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int number = 0;
void setup() {
lcd.begin(20, 4);
}
void loop() {
number = number++;
lcd.print(number);
if(number > 10) {
//clear lcd once and keep printing the rest of the numbers
lcd.clear();
}
delay(1000);
}