Programa base para la tarjeta STM32-MINIMO, usando la libreria mbed-dev.

Dependencies:   mbed-dev

Fork of STM32F103C8T6_Hello by Zoltan Hudak

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Sat Jul 02 07:51:56 2016 +0000
Parent:
2:5ebf34d19614
Child:
4:a81f44fc487e
Commit message:
Updated

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Jul 02 07:33:59 2016 +0000
+++ b/main.cpp	Sat Jul 02 07:51:56 2016 +0000
@@ -5,9 +5,11 @@
 
 int main() {
     while(1) {
-        myled = 1; // LED is ON
+        // The on-board LED is connected to pin PC_13 and, via a resistor, to +3V3. 
+        // 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 = 0; // LED is OFF
+        myled = 1; // turn the LED off
         wait(1.0); // 1 sec
     }
 }