Tool to display Walter Giers' notebooks in either chronological or in random order
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213141516 |
- class Timer {
- float time;
- int starttime, lasttime;
- Timer(float t) {
- time = t;
- starttime = second();
- lasttime = starttime;
- }
- void update() {
- if (millis() - starttime >= lasttime + time) {
- lasttime = millis();
- //runs once every time "time" (millis as float) passed:
- nextSlide(autoplayMode);
- }
- }
- }
|