Programa base para la tarjeta STM32-MINIMO, usando la libreria mbed-dev.
Fork of STM32F103C8T6_Hello by
main.cpp
- Committer:
- hudakz
- Date:
- 2016-08-13
- Revision:
- 9:d3fb631890d7
- Parent:
- 8:f1432e9af6c8
- Child:
- 10:4b88be251088
File content as of revision 9:d3fb631890d7:
#include "stm32f103c8t6.h" #include "mbed.h" Serial pc(PA_2, PA_3); DigitalOut myled(LED1); int main() { 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; // turn the LED on wait(0.2); // 200 ms myled = 1; // turn the LED off wait(1.0); // 1 sec pc.printf("Blink\r\n"); } }