aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 78cdf13..78b0f89 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,34 +4,16 @@
#include "HardwareUsb.h"
#include "usb.h"
-HardwareUsb USB;
-
int ledPin = 13;
void setup() {
- pinMode(ledPin,OUTPUT);
-// Serial2.begin(9600);
- Serial3.begin(9600);
- Serial3.println("hello");
+ pinMode(ledPin, OUTPUT);
}
-volatile int toggle = 1;
-
-char c;
+int toggle = 1;
void loop() {
digitalWrite(ledPin, toggle);
toggle ^= 1;
- delay(500);
-// USB.print(millis());
-// Serial3.println("hello");
-// USB.println("\r");
-// Serial2.print(millis(), DEC);
-// Serial2.print(": ");
-// Serial2.print(USB.available(), DEC);
-// Serial2.println();
- if (Serial3.available()){
- c = Serial3.read();
- Serial3.print(c);
- }
+ delay(100);
}
int main(void) {