sanguino/cores/arduino/main.cpp

Thu, 07 Jul 2016 12:23:34 +0200

author
mbayer
date
Thu, 07 Jul 2016 12:23:34 +0200
changeset 2
b373b0288715
permissions
-rw-r--r--

added missing sanguino files

2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
1 #include <Arduino.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
3 int main(void)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
4 {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
5 init();
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
6
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
7 #if defined(USBCON)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
8 USBDevice.attach();
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
9 #endif
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
10
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
11 setup();
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
12
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
13 for (;;) {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
14 loop();
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
15 if (serialEventRun) serialEventRun();
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
16 }
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
17
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
18 return 0;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
19 }
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
20

mercurial