Look for a LOGO (.LGO) file on the mbed and run the commands in it. Only supports a small subset of the LOGO commands.

Dependencies:   mbed

Committer:
nbbhav
Date:
Sat Apr 09 18:06:27 2011 +0000
Revision:
0:864f6ee5169b
Initial version supporting FORWARD, BACK, LEFT and RIGHT commands.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nbbhav 0:864f6ee5169b 1 /*
nbbhav 0:864f6ee5169b 2 * LOGO command implementation
nbbhav 0:864f6ee5169b 3 */
nbbhav 0:864f6ee5169b 4
nbbhav 0:864f6ee5169b 5 struct Command
nbbhav 0:864f6ee5169b 6 {
nbbhav 0:864f6ee5169b 7 virtual void go() const = 0;
nbbhav 0:864f6ee5169b 8 virtual const char* string() const = 0;
nbbhav 0:864f6ee5169b 9 };
nbbhav 0:864f6ee5169b 10
nbbhav 0:864f6ee5169b 11 Command* build_command(int line, const char* str, int* pos);
nbbhav 0:864f6ee5169b 12
nbbhav 0:864f6ee5169b 13 void destroy_command(Command* cmd);