Clear LCD once in loop


hi,

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();
  }


Arduino Forum > Using Arduino > Programming Questions > Clear LCD once in loop


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support