-//const int P_LED_VCC = 3;
+const int P_LED_VCC = 3;
 const int P_LED_DATA = 9;
 const int P_LED_CLOCK = 10;
 const int P_LED_LATCH = 11;
 
-//const int LED_TWO_VOLTS = 100;
+const uint8_t LED_TWO_VOLTS = 255;
 
 //const uint8_t LED_STATE_OFF = 0;
 //const uint8_t LED_STATE_ON = 1;

  Serial.begin(115200);

  // put your setup code here, to run once:
  //pinMode(P_LED_VCC, OUTPUT);
  pinMode(P_LED_DATA, OUTPUT);
  pinMode(P_LED_CLOCK, OUTPUT);
  pinMode(P_LED_LATCH, OUTPUT);

  //analogWrite(P_LED_VCC, HIGH);

  //states[0] = LED_STATE_ON;

  analogWrite(P_LED_LATCH, LOW);
  shiftOut();
  analogWrite(P_LED_LATCH, HIGH);

}



void shiftOut() {
  for (uint8_t i = 0; i < 8; i++)  {
    if (!!(val & (1 << i))){
      analogWrite(P_LED_DATA, LED_TWO_VOLTS);
    } else {
      analogWrite(P_LED_DATA, LOW);
    }
    

    analogWrite(P_LED_CLOCK, LED_TWO_VOLTS);
    analogWrite(P_LED_CLOCK, LOW);
  }

  /*analogWrite(P_LED_CLOCK, LOW);
