Programa base para la tarjeta STM32-MINIMO, usando la libreria mbed-dev.
Fork of STM32F103C8T6_Hello by
main.cpp
- Committer:
- Siconetics
- Date:
- 2016-12-19
- Revision:
- 11:7ad02c61c1f9
- Parent:
- 10:4b88be251088
File content as of revision 11:7ad02c61c1f9:
#include "mbed.h" Serial pc(PA_9, PA_10); DigitalOut myled(PC_13); int main() { ProgMain: // 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 = false; // turn the LED on wait_ms(100); // 100 millisecond myled = true; // turn the LED off wait_ms(100); // 100 millisecond pc.printf("Blink\r\n"); goto ProgMain; }