// Eksempel på if RTC.begin(); // Check to see if the RTC is keeping time. If it is, load the time from your computer. if (! RTC.isrunning()) { Serial.println("RTC is NOT running!"); // This will reflect the time that your sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); // This line sets the RTC with an explicit date & time, for example to set // January 9, 2014 at 3:00am you would call: //RTC.adjust(DateTime(2014, 1, 9, 3, 5, 0)); } // RTC end //Eksempel på if - else if (old_value[i] > value[i]) { tft.drawLine(dx, dy - 5, dx + pw, dy, WHITE); old_value[i]--; tft.drawLine(dx, dy + 6, dx + pw, dy + 1, RED); } else { tft.drawLine(dx, dy + 5, dx + pw, dy, WHITE); old_value[i]++; tft.drawLine(dx, dy - 6, dx + pw, dy - 1, RED); }