Ejemplo n.º 1
0
void HomeScreen::display() {
  lcd.clear();
  lcd.noBlink();
  lcd.noCursor();
  displayHeader();
  displayDateTime();
  displayTemp();
}
Ejemplo n.º 2
0
void HomeScreen::loop(unsigned long tNow) {
#if DBG
  Serial.print("HomeScreen::loop: ");
  Serial.println(tNow);
#endif
  if (tLastDateTime == 0 || tNow - tLastDateTime > LOOP_UPDATE_INTERVAL) {
    displayDateTime();
    tLastDateTime = tNow;
  }
  
  if (tLastTemp == 0 || tNow - tLastTemp > (LOOP_UPDATE_INTERVAL * 10)) {
    displayTemp();
    tLastTemp = tNow;
  }
}
Ejemplo n.º 3
0
void refreshScreen(){
    if(timerStruct(lastDisplayTime) > displayTime && currentViewDisplay != DISPLAY_Alarm){
        currentViewDisplay = DISPLAY_DateTime;
        LcdBackLight(LCD_BACKLIGHT_OFF);
    }

    if(currentViewDisplay == DISPLAY_DateTime){
        displayDateTime();
    } else if(currentViewDisplay == DISPLAY_Volume){
        displayVolume();
    } else if(currentViewDisplay == DISPLAY_Alarm){
        displayAlarm(getRunningAlarmID());
    } else if(currentViewDisplay == DISPLAY_Twitch){
        displayTwitch(data.name, data.title, data.game);
    } else if(currentViewDisplay == DISPLAY_Twitter){
        displayTwitter(TweetFeed.tweet);
    } else if(currentViewDisplay == DISPLAY_StreamInfo){
        displayStreamInfo();
    }
}