Look for a LOGO (.LGO) file on the mbed and run the commands in it. Only supports a small subset of the LOGO commands.
Diff: commands.h
- Revision:
- 0:864f6ee5169b
diff -r 000000000000 -r 864f6ee5169b commands.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commands.h Sat Apr 09 18:06:27 2011 +0000 @@ -0,0 +1,13 @@ +/* + * LOGO command implementation + */ + +struct Command +{ + virtual void go() const = 0; + virtual const char* string() const = 0; +}; + +Command* build_command(int line, const char* str, int* pos); + +void destroy_command(Command* cmd);