 boolean inAfterStartState = true;
 
 void setup() {
-  for(byte i = 0; i < 8; i++) {
-    pinMode(powerPins[i], OUTPUT);
-  }
+  pinMode(adjPowerPin, OUTPUT);
   pinMode(latchPin, OUTPUT);
   pinMode(eePin, OUTPUT);
   pinMode(emPin, OUTPUT);
   pinMode(prrPin, OUTPUT);
   pinMode(buttonPin, INPUT);
-
   pinMode(ledPin, OUTPUT);
   Serial.begin(9600);
 }

}

void submitPower(byte lvl) {
  for(byte i = 0; i < 8; i++) {
    digitalWrite(powerPins[i], ((1 << i) & lvl) == (1 << i));
  }
}

const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;

const byte powerLevel = 50;

const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
