diff options
Diffstat (limited to 'cores/robot/main.cpp')
-rw-r--r-- | cores/robot/main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cores/robot/main.cpp b/cores/robot/main.cpp new file mode 100644 index 0000000..3d4e079 --- /dev/null +++ b/cores/robot/main.cpp @@ -0,0 +1,20 @@ +#include <Arduino.h> + +int main(void) +{ + init(); + +#if defined(USBCON) + USBDevice.attach(); +#endif + + setup(); + + for (;;) { + loop(); + if (serialEventRun) serialEventRun(); + } + + return 0; +} + |