Maxi Pickl
/
Bertl_uebungen
Clear All Beeper To The Wall
main.cpp@1:fe621d794c6c, 2015-04-24 (annotated)
- Committer:
- mpickl
- Date:
- Fri Apr 24 09:17:13 2015 +0000
- Revision:
- 1:fe621d794c6c
- Parent:
- 0:407bebd23b26
- Child:
- 2:9795f864acac
LED Ampel
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mpickl | 0:407bebd23b26 | 1 | /* |
mpickl | 0:407bebd23b26 | 2 | Name: main.cpp |
mpickl | 0:407bebd23b26 | 3 | Autor: Maximilian Pickl |
mpickl | 0:407bebd23b26 | 4 | Datum: 23.04.2015 |
mpickl | 1:fe621d794c6c | 5 | Zuletzt geändert: 24.04.2015 |
mpickl | 0:407bebd23b26 | 6 | */ |
mpickl | 0:407bebd23b26 | 7 | |
mpickl | 0:407bebd23b26 | 8 | #include "mbed.h" |
mpickl | 0:407bebd23b26 | 9 | #include "uebungen.h" |
mpickl | 0:407bebd23b26 | 10 | #include "ur_Bertl.h" |
mpickl | 1:fe621d794c6c | 11 | #include "const.h" |
mpickl | 0:407bebd23b26 | 12 | |
mpickl | 0:407bebd23b26 | 13 | int main() |
mpickl | 0:407bebd23b26 | 14 | { |
mpickl | 0:407bebd23b26 | 15 | Task_Bertl karel; |
mpickl | 1:fe621d794c6c | 16 | |
mpickl | 1:fe621d794c6c | 17 | karel.LedAmpel(); |
mpickl | 0:407bebd23b26 | 18 | |
mpickl | 0:407bebd23b26 | 19 | /*while(1) |
mpickl | 0:407bebd23b26 | 20 | { |
mpickl | 0:407bebd23b26 | 21 | if (!karel.NextToABeeper()) |
mpickl | 0:407bebd23b26 | 22 | { |
mpickl | 0:407bebd23b26 | 23 | karel.Move(); |
mpickl | 0:407bebd23b26 | 24 | } |
mpickl | 0:407bebd23b26 | 25 | |
mpickl | 0:407bebd23b26 | 26 | if (karel.NextToABeeper()) |
mpickl | 0:407bebd23b26 | 27 | { |
mpickl | 0:407bebd23b26 | 28 | karel.PickBeeper(); |
mpickl | 0:407bebd23b26 | 29 | karel.ShutOff(); |
mpickl | 0:407bebd23b26 | 30 | } |
mpickl | 0:407bebd23b26 | 31 | }*/ |
mpickl | 0:407bebd23b26 | 32 | |
mpickl | 1:fe621d794c6c | 33 | // karel.ClearAllBeeperToTheWall(); |
mpickl | 0:407bebd23b26 | 34 | } |
mpickl | 0:407bebd23b26 | 35 |