![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
A sample test run program to monitor LED blinking and controlling various aspects of it.
Dependencies: mbed
Revision 0:04e7f2798a30, committed 2018-11-08
- 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 |
--- /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; +}
--- /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