mbed-classic on Bluepill
Dependencies: mbed-STM32F103C8T6 mbed
Fork of Testato-mbed-dev-Bluepill by
Diff: main.cpp
- Revision:
- 16:2231520f7869
- Parent:
- 15:db1bed031739
diff -r db1bed031739 -r 2231520f7869 main.cpp --- a/main.cpp Sat Sep 17 11:03:13 2016 +0000 +++ b/main.cpp Wed Jul 05 14:53:48 2017 +0000 @@ -2,25 +2,29 @@ #include "mbed.h" + //Serial pc(PA_2, PA_3); DigitalOut myled(PC_13); + + int main() { confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) while(1) { - // 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; wait(0.1); myled = 1; wait(0.1); + + + //pc.printf("Blink\r\n"); } }