sanguino/cores/arduino/main.cpp

Fri, 17 Nov 2017 10:13:31 +0100

author
mdd
date
Fri, 17 Nov 2017 10:13:31 +0100
changeset 3
770b218a4931
parent 2
b373b0288715
permissions
-rw-r--r--

proper configuration, homing and planner optimization

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