Just for the special Bertl
Meine Projekte
Diese Projekte hab ich im SS 2015 in FSST programmiert:
Bertl_While_Task_1
Bertl_ClearAllBeepersToTheWall
RunBertl
Source:
https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/
Revision 0:ac32c36215e7, committed 2015-04-30
- Comitter:
- davidhasenhuettl
- Date:
- Thu Apr 30 11:45:00 2015 +0000
- Commit message:
- Pressing a button-->Turn on a LED
Changed in this revision
diff -r 000000000000 -r ac32c36215e7 Task_1.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Task_1.cpp Thu Apr 30 11:45:00 2015 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" + +int main() +{ + ur_Bertl karel; + + while(1) + { + while(karel.IsButtonPressed(BTN_FLL)) + { + karel.TurnLedOn(LED_FL1 | LED_BL1); + wait(0.5); + karel.TurnLedOff(LED_ALL); + } + + while(karel.IsButtonPressed(BTN_FRR)) + { + karel.TurnLedOn(LED_FR1 | LED_BR1); + wait(0.5); + karel.TurnLedOff(LED_ALL); + } + } +}
diff -r 000000000000 -r ac32c36215e7 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 30 11:45:00 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file
diff -r 000000000000 -r ac32c36215e7 ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Thu Apr 30 11:45:00 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#207a1e646191