Andreas Koller
/
Bert_Sensoren
Sensoren Test
main.cpp
- Committer:
- asdfmaker333
- Date:
- 2015-04-16
- Revision:
- 0:23efacfc4c60
- Child:
- 1:6fb229756f2a
File content as of revision 0:23efacfc4c60:
#include "mbed.h" #include "const.h" #include "ur_Bertl.h" DigitalOut myled(LED1); int main() { ur_Bertl karel; while(1) { if( karel.IsButtonPressed(BTN_FL)) karel.NibbleLeds(0x0B); else karel.NibbleLeds(0x00); if( karel.IsButtonPressed(BTN_FLL)) karel.NibbleLeds(0x0A); else karel.NibbleLeds(0x00); if( karel.IsButtonPressed(BTN_FM)) karel.NibbleLeds(0x0C); else karel.NibbleLeds(0x00); } }