mbed-classic on Bluepill

Dependencies:   mbed-STM32F103C8T6 mbed

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

Revision:
10:69c66b10784c
Parent:
9:d3fb631890d7
Child:
11:2cc880f72fc1
--- a/main.cpp	Sat Aug 13 11:56:02 2016 +0000
+++ b/main.cpp	Sat Sep 10 16:57:05 2016 +0000
@@ -1,7 +1,7 @@
 #include "stm32f103c8t6.h"
 #include "mbed.h"
  
-Serial      pc(PA_2, PA_3);
+//Serial      pc(PA_2, PA_3);
 DigitalOut  myled(LED1);
  
 int main() {
@@ -9,10 +9,10 @@
         // 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(0.2);      // 200 ms
+        wait_ms(100);      // 200 ms
         myled = 1;      // turn the LED off
-        wait(1.0);      // 1 sec
-        pc.printf("Blink\r\n");
+        wait_ms(100);      // 1 sec
+        //pc.printf("Blink\r\n");
     }
 }
  
\ No newline at end of file