![](/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
Diff: main.cpp
- Revision:
- 0:04e7f2798a30
--- /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; +}