Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:fe8e35c31d0e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 24 08:03:35 2015 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "ur_Bertl.h" + +int main() +{ + ur_Bertl karel; + + karel.TurnLedOn(0x00); + + while(1) + { + while(karel.IsButtonPressed(0x80)) + { + karel.TurnLedOn(0x01); + karel.TurnLedOn(0x20); + } + + karel.TurnLedOff(0x01); + karel.TurnLedOff(0x20); + } +} \ No newline at end of file