#include "MainLoop.hpp" MainLoop* mainloop = nullptr; void setup() { // Play small init sequence on error LED to let users know that the device is (re-)booting pinMode(3, OUTPUT); for (int i = 0; i < 4; i++) { digitalWrite(3, HIGH); delay(100); digitalWrite(3, LOW); delay(100); } // Init system mainloop = &MainLoop::getInstance(); mainloop->setup(); } void loop() { mainloop->update(); }