 // Arduino NANO pin A6
 static const uint8_t PIN_EN = A6;
 
+static const uint8_t PIN_PROGRAM_SWITCH_1 = 7;
+static const uint8_t PIN_PROGRAM_SWITCH_2 = 8;
+
 // On board LED
 static const uint8_t PIN_STATUS = 13;
 

        // fast-blink the on-board LED
        digitalWrite(PIN_STATUS, HIGH);
        delay(50);
        digitalWrite(PIN_STATUS, HIGH);
        delay(50);
    } else {
        // Check every loop to be sure the motor isn't stalled


MotorState *motor1State;

// Note: Pins are initialized with pullup enabled.  Boolean algebra is backwards here. 
// index [0][0] - both PROGRAM_SWITCH pins == HIGH 
// index [0][1] - PROGRAM_SWITCH pins 1,2 == HIGH,LOW
// index [1][0] - PROGRAM_SWITCH pins 1,2 == LOW,HIGH
// index [1][0] - both PROGRAM_SWITCH pins == LOW
Program *programs[2][2];

void setup()
{
