 // PIN NUMBERS
 int output_lights[7] = {38, 39, 40, 41, 42, 43, 44};
 
-// TODO(benkraft): Do we still need these?
-int gear_lodged[3] = {45, 46, 47};
+int red_button = 30;
 
 int pot = A0;
 
 int photoresistors[3] = {A1, A2, A3};
 
-// TODO(bhomberg): calculate these numbers for real once mechanism is built; this is approx
-// TODO(benkraft): Reverse these if necesesary to match how I'm considering
-// selector state.
-int pot_locs[8] = {100, 200, 300, 400, 500, 600, 700, 800};
+// if the potentiometer is between pot_locs[2*i] and pod_locs[2*i+1], then we 
+// say we are in position i.  otherwise, we are between positions.
+int pot_locs[14] = {1024, 885, 825, 690, 640, 450, 390, 280, 190, 70, 50, 24, 12, 0};
 
 
 // STATE OF THE WORLD

  // TODO(bhomberg): open solenoid??
}

// turn on light for gear #n lodged, or not
void showLodged(int n, boolean isLodged)
{
  digitalWrite(gear_lodged[n], isLodged ? HIGH : LOW);
}

// Reset all the lights.  (Caller should reset internal state.)
void resetLights()
{

  for(int i=0; i<7; i++)
  {
    digitalWrite(output_lights[i], LOW);
  }

  // TODO(bhomberg): close all solenoids (??)
