Clear - JuliaElizabethLittle/peeMarksmanship GitHub Wiki

We don't want the screen to display the score forever so we set it that it only displays the new score for five seconds and then goes back to showing the highscore:


 //Every five seconds it changes the screen from current score to highscore 
    if (score==lastscore){
      counter+=1;
      
      if (counter>=50) {
        lcd.clear();
        lcd.print("highscore: ");
        lcd.print(highscore);
      }