Stefan Seebacher
/
M0_Uebung_1
M0_Übung_1
Fork of M0_Uebung_1 by
main.cpp@5:8b921c213640, 2016-04-20 (annotated)
- Committer:
- StefanSeebacher
- Date:
- Wed Apr 20 18:44:44 2016 +0000
- Revision:
- 5:8b921c213640
- Parent:
- 4:c9934dc0b124
M0_Uebung_1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
StefanSeebacher | 5:8b921c213640 | 1 | #include "mbed.h" |
StefanSeebacher | 5:8b921c213640 | 2 | |
StefanSeebacher | 5:8b921c213640 | 3 | // **** DEFINITIONEN **** |
StefanSeebacher | 5:8b921c213640 | 4 | |
StefanSeebacher | 5:8b921c213640 | 5 | DigitalOut LedD1(P1_8); |
StefanSeebacher | 5:8b921c213640 | 6 | |
StefanSeebacher | 5:8b921c213640 | 7 | // **** HAUPTPROGRAMM **** |
StefanSeebacher | 5:8b921c213640 | 8 | |
Enenkel | 4:c9934dc0b124 | 9 | int main(void) |
StefanSeebacher | 5:8b921c213640 | 10 | { |
Enenkel | 4:c9934dc0b124 | 11 | while(1) |
StefanSeebacher | 5:8b921c213640 | 12 | { |
StefanSeebacher | 5:8b921c213640 | 13 | LedD1 = 1; |
StefanSeebacher | 5:8b921c213640 | 14 | wait(0.1); |
StefanSeebacher | 5:8b921c213640 | 15 | LedD1 = 0; |
StefanSeebacher | 5:8b921c213640 | 16 | wait(0.1); |
Enenkel | 4:c9934dc0b124 | 17 | } |
Enenkel | 4:c9934dc0b124 | 18 | } |
StefanSeebacher | 5:8b921c213640 | 19 | // **** ENDE **** |