pizzabox-teensy/include/Commands.h
jpunkt b4dd3e4cb1 Implemented serial handshake with HELO pins.
Implemented ABORT command.
2022-01-19 22:09:35 +01:00

47 lines
No EOL
730 B
C

#ifndef COMMANDS_H
#define COMMANDS_H
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.
enum Command {
HELLO = 0,
ALREADY_CONNECTED = 1,
ERROR = 2,
RECEIVED = 3,
ABORT = 99,
SET_MOVEMENT = 'M',
SET_LIGHT = 'L',
DO_IT = 'D',
USER_INTERACT = 'U',
RECORD = 'C',
REWIND = 'R',
DEBUG_SCROLL = 'S',
DEBUG_SENSORS = 'Z',
EOT = '\n'
};
typedef enum Command Command;
typedef enum Scrolls Scrolls;
typedef enum Lights Lights;
#endif