| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected