Famke Kardux / Mbed 2 deprecated Minor_test_serial

Dependencies:   MODSERIAL mbed

Fork of Minor_test_serial by First Last

Files at this revision

API Documentation at this revision

Comitter:
Famkekardux
Date:
Tue Sep 11 13:48:35 2018 +0000
Parent:
1:40470bc517f1
Commit message:
oefenen

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 11 13:48:35 2018 +0000
@@ -3,6 +3,7 @@
 
 DigitalOut myled(LED_GREEN);
 MODSERIAL pc(USBTX, USBRX);
+DigitalIn button(ENTER);
 
 int main()
 {
@@ -11,7 +12,7 @@
     pc.printf("Hello World!\r\n");
     
     while (true) {
-        wait(0.5f); // wait a small period of time
+        wait(0.8f); // wait a small period of time
         pc.printf("%d \r\n", i); // print the value of variable i
         i++; // increment the variable
         myled = !myled; // toggle a led