A sample test run program to monitor LED blinking and controlling various aspects of it.
Dependencies: mbed
main.cpp
- Committer:
- priyanshu_varshney
- Date:
- 2018-11-08
- Revision:
- 0:04e7f2798a30
File content as of revision 0:04e7f2798a30:
#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; }