     analogWrite(P_LED_CLOCK, LOW);
     }
   */
-
-
-  Serial.println("Done");
 }
 

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

  analogWrite(P_LED_VCC, LED_TWO_VOLTS);

  delay(1000);

  //states[0] = LED_STATE_ON;

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

}

void loop() {}


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

    digitalWrite(P_LED_CLOCK, HIGH);
    digitalWrite(P_LED_CLOCK, LOW);
  }

  /*analogWrite(P_LED_CLOCK, LOW);


const int P_LED_VCC = 5;
const int P_LED_DATA = 8;
const int P_LED_CLOCK = 12;
const int P_LED_LATCH = 13;

//Value to adjust for optimal output voltage
const uint8_t LED_VCC_PWM = 105;

//const uint8_t LED_STATE_OFF = 0;
//const uint8_t LED_STATE_ON = 1;


byte val = B01000000;

//byte states[8];

