David Hasenhüttl
/
Bertl_While_Task_2
Bertl needed
Revision 0:98cd1fd6e3de, committed 2015-05-08
- Comitter:
- davidhasenhuettl
- Date:
- Fri May 08 08:48:53 2015 +0000
- Commit message:
- Second While_task
Changed in this revision
diff -r 000000000000 -r 98cd1fd6e3de Task_2.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Task_2.cpp Fri May 08 08:48:53 2015 +0000 @@ -0,0 +1,27 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" + +int main() +{ + ur_Bertl karel; + + while(karel.IsButtonPressed(BTN_BL)) + { + karel.TurnLedOn(LED_FL1 | LED_BL1); + wait(0.3); + karel.TurnLedOn(LED_FL1 | LED_BL1); + wait(0.3); + } + + while(karel.IsButtonPressed(BTN_BR)) + { + karel.TurnLedOn(LED_FL1 | LED_BR1); + wait(0.3); + karel.TurnLedOn(LED_FL1 | LED_BR2); + wait(0.3); + } + + //if(karel.IsButtonPressed(BTN_BM)) + // karel.TurnLedOff(LED_ALL); +} \ No newline at end of file
diff -r 000000000000 -r 98cd1fd6e3de mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 08 08:48:53 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file
diff -r 000000000000 -r 98cd1fd6e3de ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Fri May 08 08:48:53 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#155ce3832f01