 
 Thread flasherThread;
 
-bool currentlyFlashing = true;
+bool flashingCurrentState = true;
+bool flashed = false;
 
 void setup() {
   Serial.begin(115200);

  //Latch high. VCC adjust to two volts
  digitalWrite(P_LED_LATCH, HIGH);
  analogWrite(P_LED_VCC, LED_VCC_PWM);
}

void threadCallback() {
  
  shiftOut();
}


  pinMode(P_LED_CLOCK, OUTPUT);
  pinMode(P_LED_LATCH, OUTPUT);

  //Thread setup
  flasherThread = Thread();
  flasherThread.setInterval(1000);
  flasherThread.onRun(threadCallback);
  flasherThread.enabled = false;

  setState(1, LED_STATE_FLASHING);
  setState(0, LED_STATE_ON);
  setState(3, LED_STATE_ON);
  setState(5, LED_STATE_ON);
  setState(7, LED_STATE_ON);
  setState(9, LED_STATE_ON);
  setState(11, LED_STATE_ON);
  shiftOut();


}

void loop() {
