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:8bb30eb0cea5
- Child:
- 1:73ef57b29443
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu May 07 12:15:22 2015 +0000
@@ -0,0 +1,28 @@
+#include "ur_Bertl.h"
+#include "mbed.h"
+#include "const.h"
+
+Serial bt(p9, p10);
+
+int main()
+{
+ ur_Bertl karel;
+
+ while(karel.FrontIsClear())
+ {
+ karel.Move(50);
+ if(karel.NextToABeeper())
+ {
+ karel.PickBeeper();
+ }
+ uint8_t val = karel.AnyBeeperInBag();
+ karel.NibbleLeds(val);
+ }
+ while(!karel.FrontIsClear())
+ {
+ karel.TurnLeft();
+ int x = karel.AnyBeeperInBag();
+ for(int a = x; a > 0; a--)
+ karel.Move();
+ }
+}
\ No newline at end of file