Sebastian Stroissnigg
/
Bertl_Sensoren
Bertl Taster Test
Diff: Bertl_Sensoren.cpp
- Revision:
- 0:ffde9f956622
diff -r 000000000000 -r ffde9f956622 Bertl_Sensoren.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bertl_Sensoren.cpp Thu Apr 16 11:48:20 2015 +0000 @@ -0,0 +1,40 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "Bertl_Sensoren.h" + +void de_Bertl :: Bewege() // Definieren +{ + Move(); +} + +void de_Bertl :: TurnLedOnAll() +{ + TurnLedOn(0xff); +} + +void de_Bertl :: TurnLedOffAll() +{ + TurnLedOff(0xff); +} + +void de_Bertl :: LedBlinkLeft() +{ + for(int i = 0; i < 4; i++) + { + TurnLedOn(LED_FL2 | LED_BL1); + wait_ms(150); + TurnLedOff(0xff); + wait_ms(150); + } +} + +void de_Bertl :: BlinkLed(int led) +{ + for(int i = 0; i < 4; i++) + { + TurnLedOn(led); + wait_ms(150); + TurnLedOff(0xff); + } +} +