Michael Benedikt
/
TestUebung
TestUebung
Revision 0:702a8075c0c6, committed 2015-05-08
- Comitter:
- zwiebelturm100
- Date:
- Fri May 08 07:59:20 2015 +0000
- Commit message:
- TestUebung
Changed in this revision
diff -r 000000000000 -r 702a8075c0c6 LED_Bertl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LED_Bertl.h Fri May 08 07:59:20 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "de_Bertl.h" + +#ifndef DE_BERTL_H +#define LED_BERTL_H + +class LED_Bertl : public de_Bertl +{ +public: + void Turn2LedOn(); + void Turn2LedOff(); + +}; +#endif \ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 TestUebung.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TestUebung.cpp Fri May 08 07:59:20 2015 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "de_Bertl.h" +#include "LED_Bertl.h" + + +void LED_Bertl :: Turn2LedOn() +{ + TurnLedOn(LED_FL1 | LED_FR1); + +} + +void LED_Bertl :: Turn2LedOff() +{ + TurnLedOff(LED_FL1 | LED_FR1); +} + +void de_Bertl :: Bewege() +{ + Move(); +} \ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 TestUebung.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TestUebung.h Fri May 08 07:59:20 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "de_Bertl.h" + +#ifndef DE_BERTL_H +#define LED_BERTL_H + +class LED_Bertl :: public de_Bertl +{ +public: + void Turn2LedOn(); + void Turn2LedOff(); + +}; +#endif \ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 de_Bertl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/de_Bertl.h Fri May 08 07:59:20 2015 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" + +#ifndef DE_BERTL +#define DE_BERTL + +class de_Bertl : public ur_Bertl +{ +public: + void Bewege(); // nur Deklaration= Ptototyping + void Turn2LedsOn(); +}; +#endif \ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 08 07:59:20 2015 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "de_Bertl.h" +#include "LED_Bertl.h" +#include "const.h" + + + + +int main() +{ + LED_Bertl karel; + karel.TurnLedOff(0xFF); + while(karel.WaitUntilButtonPressed()){} + karel.Turn2LedOn(); + karel.Bewege(); + karel.Move(); + karel.Turn2LedOff(); + karel.ShutOff(); +} \ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 08 07:59:20 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf \ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Fri May 08 07:59:20 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#fafbac0ba96d