 volatile int motorState = LOW;
 boolean motorCommand = false;
 
-aJsonStream serial_stream(&Serial);
+aJsonStream serialStream(&Serial);
 
 void setup() {
   //set pins to output so you can control the shift register

    }
  }
  
  if ((millis()-time) >= motor_on && !motorCommand) {
    motorState = LOW;
    digitalWrite(motorPin, motorState);
    motorPulse = motorCount;
  }
  
  if (serial_stream.available()) {
    serial_stream.skip();
  }
  
  if (serial_stream.available()) {
    USB_connected = true;
    aJsonObject *msg = aJson.parse(&serial_stream);
    processMessage(msg);
    aJson.deleteItem(msg);
  }
  
  if (!USB_connected) {
    for (int c = 0; c < 6; c++) {
      sendDigit(circle[c]);
      delay(50);

int dataPin = 4;

int motorPin = 5;
int motorOn = 750; //number of milliseconds the motor vibrates
int motorOff = 100; //pause between pulses

int buttonPin = 2;

