Fatima Vunic
/
LAB_Led2
g
Diff: main.cpp
- Revision:
- 0:30dbbeb201f5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 28 19:40:00 2019 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +DigitalOut L1(D2); +DigitalOut L2(D3); +DigitalOut L3(D6); + +int main() { + L1=L2=L3=0; + while(1) { + L1=1; wait_ms(200); L1=0; + L2=1; wait_ms(200); L1=0; + L3=1; wait_ms(200); L1=0; + } +}