eeb7df97f7
- scroll positions - sensor values Implemented motor controls: - move to position - rewind/zero (tested on vertical scroll only) Untested: - timer for position control / detect scroll rip
29 lines
No EOL
388 B
C
29 lines
No EOL
388 B
C
enum Command {
|
|
HELLO = 0,
|
|
ALREADY_CONNECTED = 1,
|
|
ERROR = 2,
|
|
RECEIVED = 3,
|
|
|
|
MOTOR_H = 'H',
|
|
MOTOR_V = 'V',
|
|
|
|
BACKLIGHT = 'B',
|
|
FRONTLIGHT = 'F',
|
|
|
|
USER_INTERACT = 'U',
|
|
|
|
RESP_BLUE = 'X',
|
|
RESP_RED = 'O',
|
|
RESP_YELLOW = 'Y',
|
|
RESP_GREEN = 'N',
|
|
|
|
RECORD = 'C',
|
|
REWIND = 'R',
|
|
|
|
DEBUG_SCROLL = 'S',
|
|
DEBUG_SENSORS = 'Z',
|
|
|
|
EOT = '\n'
|
|
};
|
|
|
|
typedef enum Command Command; |