       if (command & AXIS_Y) {
         axis = 1;
       }
-
       // Determine the direction (neg or pos)
       uint8_t dir = 0;
       if (command & DIRECTION_POS) {

  digitalWrite(motor_x[1], LOW);
  digitalWrite(motor_y[0], LOW);
  digitalWrite(motor_y[1], LOW);
}

void loop() {
  if (Serial.available()) {
    uint8_t command;
    Serial.readBytes(&command, 1);

    // Determine whether to full stop motors or not
    if (command & FULL_STOP) {
      digitalWrite(motor_x[0], LOW);
      digitalWrite(motor_x[1], LOW);
      digitalWrite(motor_y[0], LOW);

#define SPEED_MASK 0x0f

// Motor pins
int motor_y[] = {3, 5};
int motor_x[] = {10, 11};

void setup() {
  Serial.begin(9600);
