if button left front is pressed, led left is turned on, if button .... if button middle front is pressed, don´t do anything anymore
main.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" int main() { IfBertl karel; while(!karel.IsButtonPressed(BTN_FM)) { karel.LLF(); karel.RRF(); karel.LF(); karel.RF(); karel.LB(); karel.RB(); } karel.OFF(); }