Markus Reiner
lauflicht.cpp@0:b0b154bd08c7, 2018-06-21 (annotated)
- Committer:
- mexx
- Date:
- Thu Jun 21 06:11:29 2018 +0000
- Revision:
- 0:b0b154bd08c7
Lauflicht Reiner
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mexx | 0:b0b154bd08c7 | 1 | #include "mbed.h" |
mexx | 0:b0b154bd08c7 | 2 | #include "lauflicht.h" |
mexx | 0:b0b154bd08c7 | 3 | |
mexx | 0:b0b154bd08c7 | 4 | void FourLeds:: lauflicht(void) |
mexx | 0:b0b154bd08c7 | 5 | { |
mexx | 0:b0b154bd08c7 | 6 | _ledbus = 0; |
mexx | 0:b0b154bd08c7 | 7 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 8 | _ledbus = 1; |
mexx | 0:b0b154bd08c7 | 9 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 10 | _ledbus = 2; |
mexx | 0:b0b154bd08c7 | 11 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 12 | _ledbus = 4; |
mexx | 0:b0b154bd08c7 | 13 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 14 | _ledbus = 8; |
mexx | 0:b0b154bd08c7 | 15 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 16 | _ledbus = 0; |
mexx | 0:b0b154bd08c7 | 17 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 18 | |
mexx | 0:b0b154bd08c7 | 19 | } |
mexx | 0:b0b154bd08c7 | 20 | void FourLeds:: lauflichtbalken(void) |
mexx | 0:b0b154bd08c7 | 21 | { |
mexx | 0:b0b154bd08c7 | 22 | _ledbus = 0; |
mexx | 0:b0b154bd08c7 | 23 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 24 | _ledbus = 1; |
mexx | 0:b0b154bd08c7 | 25 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 26 | _ledbus = 3; |
mexx | 0:b0b154bd08c7 | 27 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 28 | _ledbus = 7; |
mexx | 0:b0b154bd08c7 | 29 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 30 | _ledbus = 15; |
mexx | 0:b0b154bd08c7 | 31 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 32 | _ledbus = 0; |
mexx | 0:b0b154bd08c7 | 33 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 34 | _ledbus = 15; |
mexx | 0:b0b154bd08c7 | 35 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 36 | _ledbus = 0; |
mexx | 0:b0b154bd08c7 | 37 | wait(0.2); |
mexx | 0:b0b154bd08c7 | 38 | } |
mexx | 0:b0b154bd08c7 | 39 |