 
 
 int led1Pin = 9;
-int led2Pin = 10;
+int led2Pin = 11;
 int motor1pin = 5;
 int motor2pin = 6;
 int analogPin = 3;

int led1Dir = 1;
int led2Dir = 1;

char padding[2];

bool motorState = false;

//DistanceGP2Y0A21YK distSensor;

Task distCheckTask(50, distanceCheck);
Task dimLED1Task(LEDS_IDLE_PERIOD, dimLED1);

  }
}

void paddedPrint( int number, byte width ) {
  int currentMax = 10;
  for (byte i=1; i<width; i++){
    if (number < currentMax) {
      Serial.print("0");
    }
    currentMax *= 10;
  } 
  Serial.print(number);
}

void dimLED1(Task * task) {

  led1Level = led1Level + (led1Dir * led1Step);
