Fritz Hausmann
/
Bertl_DeutscherRoboter
DeutscherRoboter
main.cpp@0:a99d586ab184, 2015-04-23 (annotated)
- Committer:
- fritzhausmann
- Date:
- Thu Apr 23 12:05:37 2015 +0000
- Revision:
- 0:a99d586ab184
DeutscherRoboter
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fritzhausmann | 0:a99d586ab184 | 1 | #include "mbed.h" |
fritzhausmann | 0:a99d586ab184 | 2 | #include "ur_Bertl.h" |
fritzhausmann | 0:a99d586ab184 | 3 | #include "const.h" |
fritzhausmann | 0:a99d586ab184 | 4 | #include "Led_Bertl.h" |
fritzhausmann | 0:a99d586ab184 | 5 | #include "de_Bertl.h" |
fritzhausmann | 0:a99d586ab184 | 6 | |
fritzhausmann | 0:a99d586ab184 | 7 | // in eigenen Dateien: Klassen-/ Methodendeklaration in de_Bertl.h Methodendefinition in de_Bertl.cpp |
fritzhausmann | 0:a99d586ab184 | 8 | |
fritzhausmann | 0:a99d586ab184 | 9 | int main() |
fritzhausmann | 0:a99d586ab184 | 10 | { |
fritzhausmann | 0:a99d586ab184 | 11 | Led_Bertl karel; |
fritzhausmann | 0:a99d586ab184 | 12 | |
fritzhausmann | 0:a99d586ab184 | 13 | karel.TurnLedOff(0xFF); |
fritzhausmann | 0:a99d586ab184 | 14 | while(karel.WaitUntilButtonPressed()){} |
fritzhausmann | 0:a99d586ab184 | 15 | karel.Turn2LedsOn(); |
fritzhausmann | 0:a99d586ab184 | 16 | karel.Bewege(); |
fritzhausmann | 0:a99d586ab184 | 17 | karel.Move(); |
fritzhausmann | 0:a99d586ab184 | 18 | karel.ShutOff(); |
fritzhausmann | 0:a99d586ab184 | 19 | } |