diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-01-18 18:02:10 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-01-18 18:02:10 +0000 |
| commit | 8c3efb592b16b672fc353368c04d88d3a32cf1a2 (patch) | |
| tree | 9cf4887292432c656651012c5370009b4a69cddf /arduinoSrc1_0/main.cpp | |
| parent | fe92239d966f0219e8b7caf6335a776938b4e0e3 (diff) | |
Diffstat (limited to 'arduinoSrc1_0/main.cpp')
| -rw-r--r-- | arduinoSrc1_0/main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arduinoSrc1_0/main.cpp b/arduinoSrc1_0/main.cpp new file mode 100644 index 0000000..34450f4 --- /dev/null +++ b/arduinoSrc1_0/main.cpp @@ -0,0 +1,20 @@ +#include <Arduino.h> + +int main(void) +{ + init(); + +#if defined(USBCON) + USB.attach(); +#endif + + setup(); + + for (;;) { + loop(); + if (serialEventRun) serialEventRun(); + } + + return 0; +} + |
