Tristan Vlogman / Mbed 2 deprecated locomotion_pid_action_refactor_EMG

Dependencies:   FastPWM HIDScope MODSERIAL QEI Matrix biquadFilter controller errorFetch mbed motorConfig refGen MatrixMath inverseKinematics

Fork of Minor_test_serial by First Last

Files at this revision

API Documentation at this revision

Comitter:
tvlogman
Date:
Tue Sep 12 15:00:09 2017 +0000
Parent:
1:40470bc517f1
Child:
3:99a568200720
Commit message:
Added listener for keystroke which toggles LED and prints key to serial port;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Sep 11 10:42:39 2017 +0000
+++ b/main.cpp	Tue Sep 12 15:00:09 2017 +0000
@@ -6,14 +6,13 @@
 
 int main()
 {
-    int i = 0;
+    //int i = 0;
     pc.baud(115200);
     pc.printf("Hello World!\r\n");
     
     while (true) {
-        wait(0.5f); // wait a small period of time
-        pc.printf("%d \r\n", i); // print the value of variable i
-        i++; // increment the variable
+        pc.putc(pc.getc());
         myled = !myled; // toggle a led
+        
     }
 }