Digital Control System / Mbed 2 deprecated Lab1_2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
duncan_120
Date:
Wed Oct 27 05:12:47 2021 +0000
Parent:
1:2c4a65353203
Commit message:

Changed in this revision

Lab1_2.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Lab1_2.cpp	Mon Oct 25 10:19:21 2021 +0000
+++ b/Lab1_2.cpp	Wed Oct 27 05:12:47 2021 +0000
@@ -83,14 +83,12 @@
         myled1= 1; //1暗 0亮
         myled2= 0; 
         timer_count++;
-        uart.printf("This program runs %d seconds.\r\n",i);
     }
     else if (timer_count == 2500)
     {
         myled1= 0;
         myled2= 1; 
         timer_count = 0;
-        uart.printf("This program runs %d seconds.\r\n",i);
  
     }
     else