Bertl fährt und zählt Beeper

Dependencies:   mbed ur_Bertl

Meine Programme

neue Zeile = \ \

Bertl fährt und zählt beeper

main.cpp

void main()
{
    urBertl karel;
    int beeper = 0;
    
    while(karel.FrontIsClear)
    {
        while(!karel.NextToABeeper())
        {
            karel.Move();
        }
        beeper++;
        bt.print("Beeper: %d", beeper);
        
        karel.Move();
    }
    
    karel.TurnLeft();
    
    for(int a = 0; a < beeper; a++)
        karel.Move();
        
    karel.TurnLeft();
}

2nd-Page

Revision:
0:2db4b2b9cf3c
diff -r 000000000000 -r 2db4b2b9cf3c mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu May 07 12:11:42 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889
\ No newline at end of file