LED blinking with a small microcontroller (STM32F031/F050) with 4kB of RAM.

Dependencies:   mbed-src

Revision:
2:2290577c8ac4
Parent:
0:ff314d068cee
Child:
3:71536f3ef899
--- a/main.cpp	Sun Apr 26 19:55:24 2015 +0000
+++ b/main.cpp	Sun Apr 26 20:04:26 2015 +0000
@@ -36,9 +36,9 @@
 ***********************************************************************************/
 int main() {
     while(1) {
-        myled = 1; // LED is ON
+        myled = 1; // LED is OFF (we have connected it to VCC)
         wait(0.2); // 200 ms
-        myled = 0; // LED is OFF
+        myled = 0; // LED is ON
         wait(1.0); // 1 sec
     }
 }