MCPcopy Create free account
hub / github.com/0015/Arduino_DigitalRain_Matrix / loop

Method loop

src/DigitalRainAnimation.hpp:262–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 void resume() { isPlaying = true; }
261
262 void loop() {
263 if (!_gfx) return;
264
265 uint32_t now = millis();
266 if (now - lastUpdatedKeyTime > KEY_RESET_TIME)
267 resetKey();
268
269 if (now - lastDrawTime < timeFrame)
270 return;
271
272 if (!isPlaying) return;
273
274 switch (_animMode) {
275 case MATRIX:
276 for (int i = 0; i < numOfline; ++i) lineAnimation(i);
277 break;
278 case TEXT:
279 case SHOWCASE:
280 textAnimation();
281 break;
282 }
283
284 lastDrawTime = now;
285 }
286};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected