 }
 
 void loop() {
+  
+  if (millis() - time >= motor_time) analogWrite(motorPin, 0);
+  
   if (!USB_connected) {
     for (int c = 0; c < 6; c++) {
       sendDigit(circle[c]);

    
    if (inputString[inputString.length()-1] == ']') {
      analogWrite(motorPin, 255);
      delay(500);
      analogWrite(motorPin, 0);
    }
    
    if (inputString[inputString.length()-1] == ')') {

int dataPin = 4;

int motorPin = 5;
long motor_time = 500; //number of milliseconds the motor vibrates

int redLED = 9; //pwm
int blueLED = 10; //pwm
int greenLED = 11; //pwm
