![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Bertl Blinkt wenn die Buttons gedrückt werden.
Meine Programme
Bertl blinkt wenn Taster gedrückt ist
Diff: main.cpp
- Revision:
- 0:ae046009e5bc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 24 09:13:08 2015 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" + +int main() +{ + ur_Bertl karel; + + while(1) + { + if(karel.IsButtonPressed(BTN_FLL)) + { + karel.TurnLedOn(0x01); + karel.TurnLedOn(0x02); + } + if(karel.IsButtonPressed(BTN_FRR)) + { + karel.TurnLedOn(0x04); + karel.TurnLedOn(0x08); + } + } + +} \ No newline at end of file