if button left front is pressed, led left is turned on, if button .... if button middle front is pressed, don´t do anything anymore
IfBertl.cpp
- Committer:
- vhaas
- Date:
- 2015-04-30
- Revision:
- 1:8e58e9ebcab8
- Parent:
- 0:554931f50bf2
File content as of revision 1:8e58e9ebcab8:
#include "mbed.h" #include "ur_Bertl.h" #include "IfBertl.h" #include "const.h" void IfBertl :: LLF() { if(IsButtonPressed(BTN_FLL)) TurnLedOn(LED_FL1); } void IfBertl :: RRF() { if(IsButtonPressed(BTN_FRR)) TurnLedOn(LED_FR1); } void IfBertl :: LF() { if(IsButtonPressed(BTN_FL)) TurnLedOn(LED_FL2); } void IfBertl :: RF() { if(IsButtonPressed(BTN_FR)) TurnLedOn(LED_FR2); } void IfBertl :: LB() { if(IsButtonPressed(BTN_BL)) TurnLedOn(LED_BL1); } void IfBertl :: RB() { if(IsButtonPressed(BTN_BR)) TurnLedOn(LED_BR1); } void IfBertl :: OFF() { TurnLedOff(LED_ALL); }