2022-01-16 19:37:47 +00:00
|
|
|
enum Lights {
|
|
|
|
BACKLIGHT = 0,
|
|
|
|
FRONTLIGHT = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
const int N_LIGHTS = 2; // Set this to the number of lights. Used for iterating over array of lights
|
|
|
|
|
|
|
|
|
|
|
|
enum Scrolls {
|
|
|
|
HORIZONTAL = 0,
|
|
|
|
VERTICAL = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
const int N_SCROLLS = 2; // Set this to the number of scrolls. Used for iterating over array of scrolls.
|
|
|
|
|
|
|
|
|
2021-12-19 18:21:09 +00:00
|
|
|
enum Command {
|
|
|
|
HELLO = 0,
|
|
|
|
ALREADY_CONNECTED = 1,
|
|
|
|
ERROR = 2,
|
|
|
|
RECEIVED = 3,
|
|
|
|
|
2022-01-16 19:37:47 +00:00
|
|
|
SET_MOVEMENT = 'M',
|
|
|
|
SET_LIGHT = 'L',
|
2021-12-19 18:21:09 +00:00
|
|
|
|
2022-01-16 19:37:47 +00:00
|
|
|
DO_IT = 'D',
|
2021-12-19 18:21:09 +00:00
|
|
|
|
|
|
|
USER_INTERACT = 'U',
|
|
|
|
RECORD = 'C',
|
2022-01-16 19:37:47 +00:00
|
|
|
|
2021-12-19 18:21:09 +00:00
|
|
|
REWIND = 'R',
|
2022-01-11 19:20:05 +00:00
|
|
|
|
|
|
|
DEBUG_SCROLL = 'S',
|
|
|
|
DEBUG_SENSORS = 'Z',
|
|
|
|
|
2021-12-19 18:21:09 +00:00
|
|
|
EOT = '\n'
|
|
|
|
};
|
|
|
|
|
2022-01-16 19:37:47 +00:00
|
|
|
typedef enum Command Command;
|
|
|
|
typedef enum Scrolls Scrolls;
|
|
|
|
typedef enum Lights Lights;
|