Clear LCD once in loop
hi,
can tell me how clear lcd once in loop , carry on rest of code?
can tell me how clear lcd once in loop , carry on rest of code?
code: [select]
#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 , keep printing rest of numbers
lcd.clear();
}
delay(1000);
}
if(number > 10) {
//clear lcd once , keep printing rest of numbers
lcd.clear();
}
try
if(number = 11) {
//clear lcd once , keep printing rest of numbers
lcd.clear();
}
//clear lcd once , keep printing rest of numbers
lcd.clear();
}
try
if(number = 11) {
//clear lcd once , keep printing rest of numbers
lcd.clear();
}
Arduino Forum > Using Arduino > Programming Questions > Clear LCD once in loop
arduino
Comments
Post a Comment