mbed-classic on Bluepill

Dependencies:   mbed-STM32F103C8T6 mbed

Fork of Testato-mbed-dev-Bluepill by Testato Testato

Revision:
15:db1bed031739
Parent:
13:2bfcb5dc142a
Child:
16:2231520f7869
--- a/main.cpp	Sat Sep 17 10:50:28 2016 +0000
+++ b/main.cpp	Sat Sep 17 11:03:13 2016 +0000
@@ -16,10 +16,11 @@
     {
         // The on-board LED is connected, via a resistor, to +3.3V (not to GND). 
         // So to turn the LED on or off we have to set it to 0 or 1 respectively
-        myled = 0;      // turn the LED on
-        wait_ms(100);      // 200 ms
-        myled = 1;      // turn the LED off
-        wait_ms(100);      // 1 sec
+        myled = 0;
+        wait(0.1);
+        myled = 1;
+        wait(0.1);
+        
         //pc.printf("Blink\r\n");
     }
 }