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: protocol.h
- Revision:
- 0:5c1db55c1990
- Child:
- 1:4d6b8ccc8804
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/protocol.h Sat Nov 28 00:57:38 2015 +0000 @@ -0,0 +1,24 @@ +#ifndef PROTOCOL_H +#define PROTOCOL_H + +// Commands +const char LED = 0x00; +const char TURN_LEFT = 0x01; +const char TURN_RIGHT = 0x02; +const char MOVE_FORWARD = 0x03; +const char MOVE_BACKWARD = 0x04; +const char STOP = 0x05; + +// Speeds for left wheel +const char LEFT_SPEED1 = 0x10; +const char LEFT_SPEED2 = 0x20; +const char LEFT_SPEED3 = 0x30; + +// Speeds for right wheel +const char RIGHT_SPEED1 = 0x40; +const char RIGHT_SPEED2 = 0x80; +const char RIGHT_SPEED3 = 0x12; + +const char NEGATIVE = 0x08; + +#endif