Xiaofei Qiu / CommandPool
Committer:
Xiaofei
Date:
Sat Nov 28 23:26:37 2015 +0000
Revision:
7:bfbded2b0e8c
Parent:
6:88382274a161
Child:
9:4a795f28545b
C

Who changed what in which revision?

UserRevisionLine numberNew 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 STOP = 0x05;
Xiaofei 0:1e6560189dfa 9
Xiaofei 7:bfbded2b0e8c 10 // Speeds for wheels
Xiaofei 3:b83fb41e2726 11 const char SPEED1 = 0x10;
Xiaofei 3:b83fb41e2726 12 const char SPEED2 = 0x20;
Xiaofei 3:b83fb41e2726 13 const char SPEED3 = 0x30;
Xiaofei 1:2af5ac5be09c 14
Xiaofei 7:bfbded2b0e8c 15 // Speed direction, 1 = backward, 0 = forward
Xiaofei 2:689cb6f63695 16 const char NEGATIVE = 0x08;
Xiaofei 2:689cb6f63695 17
Xiaofei 1:2af5ac5be09c 18 #endif