pizzabox-teensy/include/Commands.h
jpunkt eeb7df97f7 Implemented debugging commands:
- 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
2022-01-11 20:20:05 +01:00

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;