 
   int speed1 = 512;
   int speed2 = 512;
-  
+
   // Read Potentiometer
   speed1 = analogRead(A0); // 0 - 1023
   speed2 = analogRead(A1); // 0 - 1023

  // ***************** Note! The ramptime is intended to protect the gearbox! *******************
  // SYNTAX: Input value, max PWM, ramptime in ms per 1 PWM increment
  // false = brake in neutral position inactive
  Motor1.drive(speed1, 255, 7, false); // Motor 1
  Motor2.drive(speed2, 255, 1, false); // Motor 2
}

//

void loop() {
  // Drive the main motor
  driveMotor();

  //Light control
  lights();
}
