diff options
| author | Perry Hung <iperry@alum.mit.edu> | 2010-03-23 01:41:08 -0400 |
|---|---|---|
| committer | Perry Hung <iperry@alum.mit.edu> | 2010-03-23 01:41:08 -0400 |
| commit | 8d6bf3b196c2a0bc1adda4a04669e54fdc5b65cb (patch) | |
| tree | 830da6f6d88f61ef4264905f7138cfc73b903ab2 /src/main.cpp | |
| parent | 3639ad2cf027da7425ebe76382842c006acec05a (diff) | |
Removed main.cpp and updated example_main.cpp and added a blinky
version. New users are expected to write their or main.cpp or copy
from an example version.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/main.cpp b/src/main.cpp deleted file mode 100644 index 013ffdf..0000000 --- a/src/main.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "wiring.h"
-#include "HardwareSerial.h"
-#include "wiring_math.h"
-#include "HardwareUsb.h"
-#include "usb.h"
-
-#define TEST_PIN 13
-
-void setup() {
- pinMode(TEST_PIN, OUTPUT);
-}
-
-int toggle = 1;
-
-void loop() {
- digitalWrite(TEST_PIN, toggle);
- toggle ^= 1;
- delay(100);
-}
-
-int main(void) {
- init();
- setup();
-
- while (1) {
- loop();
- }
- return 0;
-}
-
-/* Required for C++ hackery */
-/* TODO: This really shouldn't go here... move it later
- * */
-extern "C" void __cxa_pure_virtual(void) {
- while(1)
- ;
-}
|
