1 Projekt (Schöngeld)
Dependencies: mbed
main.cpp@0:2286d29aa801, 2015-11-16 (annotated)
- Committer:
- schoeni_91
- Date:
- Mon Nov 16 18:21:36 2015 +0000
- Revision:
- 0:2286d29aa801
1 Projekt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
schoeni_91 | 0:2286d29aa801 | 1 | #include "mbed.h" |
schoeni_91 | 0:2286d29aa801 | 2 | |
schoeni_91 | 0:2286d29aa801 | 3 | DigitalOut _D20(P1_13); |
schoeni_91 | 0:2286d29aa801 | 4 | DigitalOut _D19(P1_12); |
schoeni_91 | 0:2286d29aa801 | 5 | |
schoeni_91 | 0:2286d29aa801 | 6 | |
schoeni_91 | 0:2286d29aa801 | 7 | int main() |
schoeni_91 | 0:2286d29aa801 | 8 | { |
schoeni_91 | 0:2286d29aa801 | 9 | |
schoeni_91 | 0:2286d29aa801 | 10 | |
schoeni_91 | 0:2286d29aa801 | 11 | while(1) |
schoeni_91 | 0:2286d29aa801 | 12 | { |
schoeni_91 | 0:2286d29aa801 | 13 | _D20=1; |
schoeni_91 | 0:2286d29aa801 | 14 | _D19=0; |
schoeni_91 | 0:2286d29aa801 | 15 | |
schoeni_91 | 0:2286d29aa801 | 16 | |
schoeni_91 | 0:2286d29aa801 | 17 | wait_ms(150); |
schoeni_91 | 0:2286d29aa801 | 18 | |
schoeni_91 | 0:2286d29aa801 | 19 | _D20=0; |
schoeni_91 | 0:2286d29aa801 | 20 | _D19=1; |
schoeni_91 | 0:2286d29aa801 | 21 | |
schoeni_91 | 0:2286d29aa801 | 22 | wait_ms(150); |
schoeni_91 | 0:2286d29aa801 | 23 | |
schoeni_91 | 0:2286d29aa801 | 24 | } |
schoeni_91 | 0:2286d29aa801 | 25 | |
schoeni_91 | 0:2286d29aa801 | 26 | } |
schoeni_91 | 0:2286d29aa801 | 27 | |
schoeni_91 | 0:2286d29aa801 | 28 |