| 290 | } |
| 291 | |
| 292 | void OLEDDisplayUi::resetState() { |
| 293 | this->state.lastUpdate = 0; |
| 294 | this->state.ticksSinceLastStateSwitch = 0; |
| 295 | this->state.frameState = FIXED; |
| 296 | this->state.currentFrame = 0; |
| 297 | this->state.isIndicatorDrawn = true; |
| 298 | } |
| 299 | |
| 300 | void OLEDDisplayUi::drawFrame(){ |
| 301 | switch (this->state.frameState){ |