Fatima Vunic
/
LAB_Led2
g
main.cpp@0:30dbbeb201f5, 2019-11-28 (annotated)
- Committer:
- fatima365
- Date:
- Thu Nov 28 19:40:00 2019 +0000
- Revision:
- 0:30dbbeb201f5
hgf
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fatima365 | 0:30dbbeb201f5 | 1 | #include "mbed.h" |
fatima365 | 0:30dbbeb201f5 | 2 | |
fatima365 | 0:30dbbeb201f5 | 3 | DigitalOut L1(D2); |
fatima365 | 0:30dbbeb201f5 | 4 | DigitalOut L2(D3); |
fatima365 | 0:30dbbeb201f5 | 5 | DigitalOut L3(D6); |
fatima365 | 0:30dbbeb201f5 | 6 | |
fatima365 | 0:30dbbeb201f5 | 7 | int main() { |
fatima365 | 0:30dbbeb201f5 | 8 | L1=L2=L3=0; |
fatima365 | 0:30dbbeb201f5 | 9 | while(1) { |
fatima365 | 0:30dbbeb201f5 | 10 | L1=1; wait_ms(200); L1=0; |
fatima365 | 0:30dbbeb201f5 | 11 | L2=1; wait_ms(200); L1=0; |
fatima365 | 0:30dbbeb201f5 | 12 | L3=1; wait_ms(200); L1=0; |
fatima365 | 0:30dbbeb201f5 | 13 | } |
fatima365 | 0:30dbbeb201f5 | 14 | } |