Ovo je vježba 1.
Dependencies: mbed
Led1Led2blinky.cpp
- Committer:
- JosipLupinski
- Date:
- 2016-10-19
- Revision:
- 1:77097e35c855
- Parent:
- main.cpp@ 0:0aec5080d68b
File content as of revision 1:77097e35c855:
#include "mbed.h" DigitalOut myled1(LED1); DigitalOut myled2(LED2); int main() { while(true){ for(int i=0; i<=3;i++){ myled1=1; wait(0.5); myled1=0; wait(0.5); } for(int j=0; j<=3;j++){ myled2=1; wait(0.5); myled2=0; wait(0.5); } } }