This is a simple project on mbed, developed by NPNLab team The led is turned on for 1s and off for 1s then, repeated.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
KISIDO85
Date:
Fri Jun 23 06:09:11 2017 +0000
Commit message:
This is a simple project on ST32 Nucleo Board.; The led is turned on and off every 1s.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jun 23 06:09:11 2017 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+int main() {
+    while(1) {
+        myled = 1; // LED is ON
+        wait(1); // 2 s
+        myled = 0; // LED is OFF
+        wait(1); // 2 s
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jun 23 06:09:11 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/64910690c574
\ No newline at end of file