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.
main.cpp
- Committer:
- martinale
- Date:
- 2015-04-24
- Revision:
- 0:8bd44a190572
File content as of revision 0:8bd44a190572:
 #include "mbed.h"
#include "Robot.h"
#include "const.h"
class Bertl_Beeper : public Robot
{
public:
    void ClearAllBeeperToTheWall();
};
void Bertl_Beeper :: ClearAllBeeperToTheWall()
{
    while(FrontIsClear()) 
    {
        if(NextToABeeper())
        {
            PickBeeper();  
            NibbleLeds(AnyBeeperInBag());
            wait(1);  
            Move();
        }
        else
            Move();
    }
}
int main()
{
    Bertl_Beeper karel;
    karel.ClearAllBeeperToTheWall();
   
}