Tool to display Walter Giers' notebooks in either chronological or in random order
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

12345678910111213141516
  1. class Timer {
  2. float time;
  3. int starttime, lasttime;
  4. Timer(float t) {
  5. time = t;
  6. starttime = second();
  7. lasttime = starttime;
  8. }
  9. void update() {
  10. if (millis() - starttime >= lasttime + time) {
  11. lasttime = millis();
  12. //runs once every time "time" (millis as float) passed:
  13. nextSlide(autoplayMode);
  14. }
  15. }
  16. }