 // Check if we have a connection.  rotation is the amount we have rotated,
 // relative to 0 being the start position.  (That is, the position of the
 // selector gear.)  Call only if all gears are lodged.
-boolean haveConnection(int rotation, int gear_types[],
-                       int gear_orientations[])
+boolean haveConnection(int rotation)
 {
   // TODO(benkraft): Make sure these match the actual directions of rotation in
   // the final mechanism.

// hard-coded pin numbers for input/output
// TODO(benkraft): I am assuming for the sake of argument that these start at
// the top and go clockwise; fix once we know the correct positions.
int gear_connections[3][12] = {{ 2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13}, 
                               {14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25}, 
                               {26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37}};
                               
int output_lights[7] = {38, 39, 40, 41, 42, 43, 44};

int gear_lodged[3] = {45, 46, 47};

int pot = A0;

  {1, 5}, {1, 9}, {5, 9},
  {2, 6}, {2, 10}, {6, 10}};


// MAIN TOPLEVEL STUFF

// this runs once when the program starts
void setup() 
{
