lenardo's serial

Dependencies:   MODSERIAL mbed

Fork of Minor_test_serial by First Last

Files at this revision

API Documentation at this revision

Comitter:
lenardo
Date:
Mon Sep 12 10:18:16 2016 +0000
Parent:
0:c8f15874531b
Commit message:
pressing pc buttons;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c8f15874531b -r 3ffc771fc813 main.cpp
--- a/main.cpp	Wed Sep 02 14:50:46 2015 +0000
+++ b/main.cpp	Mon Sep 12 10:18:16 2016 +0000
@@ -12,6 +12,7 @@
     
     while (true) {
         wait(0.5f); // wait a small period of time
+        char c = pc.getc();
         pc.printf("%d \n", i); // print the value of variable i
         i++; // increment the variable
         myled = !myled; // toggle a led