aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorDonald Delmar Davis <don@suspectdevices.com>2013-10-26 15:50:16 -0700
committerDonald Delmar Davis <don@suspectdevices.com>2013-10-26 15:50:16 -0700
commit5bac9dcb4569f107315768677e4c6d580a743171 (patch)
tree2822f877b07b7f6fbfeec54e40448b65ae196c15 /main.cpp
parent7edfa511b95c70673b87b988a0cd81eb2f8b168b (diff)
Add all the stuff and update the readme.HEADmaster
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..3d4e079
--- /dev/null
+++ b/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;
+}
+