A sample test run program to monitor LED blinking and controlling various aspects of it.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
priyanshu_varshney
Date:
Thu Nov 08 17:55:17 2018 +0000
Commit message:
Sample program LED blinking;

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
diff -r 000000000000 -r 04e7f2798a30 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 08 17:55:17 2018 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include<iostream>
+using namespace std;
+
+DigitalOut myled(LED4);
+DigitalOut myled2(LED2);
+
+int main() {
+    int n =5;
+    while(n--) {
+        myled = 1;
+        myled2 = 1;
+        wait(0.5);
+        myled = 0;
+        myled2 = 0;
+        wait(0.2);
+    }
+    myled = 1;
+    myled2= 1;
+}
diff -r 000000000000 -r 04e7f2798a30 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 08 17:55:17 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file