   }
   
   if (sName == "color") {
-    int LED_value = iValue;
+    int valueLED = iValue;
       
-    if (LED_value >= 0 && LED_value <= 85) {
-      analogWrite(redLED, -1*LED_value*255/85+255);
-      analogWrite(greenLED, LED_value*255/85);
+    if (valueLED >= 0 && valueLED <= 85) {
+      analogWrite(redLED, -1*valueLED*255/85+255);
+      analogWrite(greenLED, valueLED*255/85);
       analogWrite(blueLED, 0);
     }
     
-    if (LED_value > 85 && LED_value <= 170) {
-      analogWrite(greenLED, -1*(LED_value-85)*255/85+255);
-      analogWrite(blueLED, (LED_value-85)*255/85);
+    if (valueLED > 85 && valueLED <= 170) {
+      analogWrite(greenLED, -1*(valueLED-85)*255/85+255);
+      analogWrite(blueLED, (valueLED-85)*255/85);
       analogWrite(redLED, 0);
     }
     
-    if (LED_value > 170 && LED_value <= 255) {
-      analogWrite(blueLED, -1*(LED_value-170)*255/85+255);
-      analogWrite(redLED, (LED_value-170)*255/85);
+    if (valueLED > 170 && valueLED <= 255) {
+      analogWrite(blueLED, -1*(valueLED-170)*255/85+255);
+      analogWrite(redLED, (valueLED-170)*255/85);
       analogWrite(greenLED, 0);
     }
     return;

void loop() {
  
  //handle motor control
  if (motorState == HIGH && (millis() - time) >= motor_on && motorCommand) {
    motorState = LOW;
    digitalWrite(motorPin, motorState);
    time = millis();
  }
  
  if (motorState == LOW && (millis() - time) >= motor_off 
                          && motorPulse > 0 && motorCommand) {
    motorState = HIGH;
    digitalWrite(motorPin, motorState);

int greenLED = 11; //pwm
int digitLED = 6; //pwm. 7 segment brightness

boolean usbConnected = false;
volatile unsigned long time = 0;

int motorCount = 1;
