// PowerPOV
int HIGHLOW = 2; //LED level
int RCLR = 3; //Clear Storage register
int RCK = 4;  //Write storage register
int SCK = 5;  //Clock shift register
int SCLR = 6;  //Clear shift register
int PWM = 9;
int x=0;
void setup() 
{ 
pinMode(HIGHLOW, OUTPUT); 
pinMode(RCLR, OUTPUT);
pinMode(RCK, OUTPUT);
pinMode(SCK, OUTPUT);
pinMode(SCLR, OUTPUT);
pinMode(PWM, OUTPUT);
} 

void loop()
{
  
digitalWrite(SCLR, HIGH); digitalWrite(SCLR, LOW); digitalWrite(SCLR, HIGH);  // Clear Shift Register   
digitalWrite(RCLR, HIGH); digitalWrite(RCLR, LOW); digitalWrite(RCLR, HIGH);  // Clear Storage Register
digitalWrite(RCK, LOW); digitalWrite(SCK, LOW);  //Set levels
analogWrite(PWM, 50); // Intensity

for (x=0; x<0; x++){
digitalWrite(RCK, LOW);
shiftOut(HIGHLOW, SCK, MSBFIRST, x); 
}
digitalWrite(RCK, HIGH);
delay(10);

for (x=0; x<32; x++){
digitalWrite(RCK, LOW);
shiftOut(HIGHLOW, SCK, MSBFIRST, x); 
}
digitalWrite(RCK, HIGH);
delay(10);

for (x=0; x<28; x++){
digitalWrite(RCK, LOW);
shiftOut(HIGHLOW, SCK, MSBFIRST, x); 
}
digitalWrite(RCK, HIGH);
delay(10);

for (x=0; x<221; x++){
digitalWrite(RCK, LOW);
shiftOut(HIGHLOW, SCK, MSBFIRST, x); 
}
digitalWrite(RCK, HIGH);
delay(10);

}