From 8c3efb592b16b672fc353368c04d88d3a32cf1a2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 18 Jan 2012 18:02:10 +0000 Subject: updated previous demo to Arduino 1.0 --- arduinoSrc1_0/main.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 arduinoSrc1_0/main.cpp (limited to 'arduinoSrc1_0/main.cpp') 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 + +int main(void) +{ + init(); + +#if defined(USBCON) + USB.attach(); +#endif + + setup(); + + for (;;) { + loop(); + if (serialEventRun) serialEventRun(); + } + + return 0; +} + -- cgit v1.2.3