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.
protocol.h@3:b83fb41e2726, 2015-11-28 (annotated)
- Committer:
- Xiaofei
- Date:
- Sat Nov 28 02:34:45 2015 +0000
- Revision:
- 3:b83fb41e2726
- Parent:
- 2:689cb6f63695
- Child:
- 6:88382274a161
C
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Xiaofei | 0:1e6560189dfa | 1 | #ifndef PROTOCOL_H |
| Xiaofei | 0:1e6560189dfa | 2 | #define PROTOCOL_H |
| Xiaofei | 0:1e6560189dfa | 3 | |
| Xiaofei | 1:2af5ac5be09c | 4 | // Commands |
| Xiaofei | 0:1e6560189dfa | 5 | const char LED = 0x00; |
| Xiaofei | 0:1e6560189dfa | 6 | const char TURN_LEFT = 0x01; |
| Xiaofei | 0:1e6560189dfa | 7 | const char TURN_RIGHT = 0x02; |
| Xiaofei | 0:1e6560189dfa | 8 | const char MOVE_FORWARD = 0x03; |
| Xiaofei | 0:1e6560189dfa | 9 | const char MOVE_BACKWARD = 0x04; |
| Xiaofei | 0:1e6560189dfa | 10 | const char STOP = 0x05; |
| Xiaofei | 0:1e6560189dfa | 11 | |
| Xiaofei | 1:2af5ac5be09c | 12 | // Speeds for left wheel |
| Xiaofei | 3:b83fb41e2726 | 13 | const char SPEED1 = 0x10; |
| Xiaofei | 3:b83fb41e2726 | 14 | const char SPEED2 = 0x20; |
| Xiaofei | 3:b83fb41e2726 | 15 | const char SPEED3 = 0x30; |
| Xiaofei | 1:2af5ac5be09c | 16 | |
| Xiaofei | 2:689cb6f63695 | 17 | const char NEGATIVE = 0x08; |
| Xiaofei | 2:689cb6f63695 | 18 | |
| Xiaofei | 1:2af5ac5be09c | 19 | #endif |