![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Blinken -*XDDDDDDDDD
main.cpp@0:7e503fac693a, 2015-04-16 (annotated)
- Committer:
- Putzi
- Date:
- Thu Apr 16 11:53:38 2015 +0000
- Revision:
- 0:7e503fac693a
Bertl_abwechselnd-blinken
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Putzi | 0:7e503fac693a | 1 | #include "mbed.h" |
Putzi | 0:7e503fac693a | 2 | |
Putzi | 0:7e503fac693a | 3 | DigitalOut myled1(LED1); |
Putzi | 0:7e503fac693a | 4 | DigitalOut myled2(LED2); |
Putzi | 0:7e503fac693a | 5 | DigitalOut myled3(LED3); |
Putzi | 0:7e503fac693a | 6 | DigitalOut myled4(LED4); |
Putzi | 0:7e503fac693a | 7 | |
Putzi | 0:7e503fac693a | 8 | int main() |
Putzi | 0:7e503fac693a | 9 | { |
Putzi | 0:7e503fac693a | 10 | while(1) |
Putzi | 0:7e503fac693a | 11 | { |
Putzi | 0:7e503fac693a | 12 | myled1 = 1; |
Putzi | 0:7e503fac693a | 13 | myled2 = 1; |
Putzi | 0:7e503fac693a | 14 | myled3 = 0; |
Putzi | 0:7e503fac693a | 15 | myled4 = 0; |
Putzi | 0:7e503fac693a | 16 | wait(0.5); |
Putzi | 0:7e503fac693a | 17 | myled1 = 0; |
Putzi | 0:7e503fac693a | 18 | myled2 = 0; |
Putzi | 0:7e503fac693a | 19 | myled3 = 1; |
Putzi | 0:7e503fac693a | 20 | myled4 = 1; |
Putzi | 0:7e503fac693a | 21 | wait(0.5); |
Putzi | 0:7e503fac693a | 22 | } |
Putzi | 0:7e503fac693a | 23 | } |