![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
prvi prij
Fork of mbed_blinky by
main.cpp@19:6fd94dbef209, 2017-11-07 (annotated)
- Committer:
- rajko
- Date:
- Tue Nov 07 10:02:45 2017 +0000
- Revision:
- 19:6fd94dbef209
- Parent:
- 4:81cea7a352b0
prvi proj
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan | 0:7dec7e9ac085 | 1 | #include "mbed.h" |
dan | 0:7dec7e9ac085 | 2 | |
rajko | 19:6fd94dbef209 | 3 | DigitalOut myled1(LED1); |
rajko | 19:6fd94dbef209 | 4 | DigitalOut myled2(LED2); |
dan | 0:7dec7e9ac085 | 5 | |
dan | 0:7dec7e9ac085 | 6 | int main() { |
dan | 0:7dec7e9ac085 | 7 | while(1) { |
rajko | 19:6fd94dbef209 | 8 | myled1 = 1; |
rajko | 19:6fd94dbef209 | 9 | wait(0.2); |
rajko | 19:6fd94dbef209 | 10 | myled1 = 0; |
dan | 0:7dec7e9ac085 | 11 | wait(0.2); |
rajko | 19:6fd94dbef209 | 12 | |
rajko | 19:6fd94dbef209 | 13 | myled2 = 1; |
rajko | 19:6fd94dbef209 | 14 | wait(1); |
rajko | 19:6fd94dbef209 | 15 | myled2 = 0; |
rajko | 19:6fd94dbef209 | 16 | wait(1); |
stevep | 4:81cea7a352b0 | 17 | } |
dan | 0:7dec7e9ac085 | 18 | } |