const int dataPin1 = 2;   /* DS */
const int clockPin1 = 3;  /* SHCP */
const int latchPin1 = 4;  /* STCP */

int zero;
int one;
int two;
int three;
int four;
int five;
int six;
int seven;
int eight;
int nine;


void setup() {
  Serial.begin(9600);
  for(int i = 2; i<4; i++)
   {
      pinMode(i, OUTPUT);
   }

 zero =  0b11111100; //0
 one =   0b01100000; //1
 two =   0b11011010; //2
 three = 0b11110010; //3
 four =  0b01100110; //4
 five =  0b10110110; //5
 six =   0b10111110; //6
 seven = 0b11100000; //7
 eight = 0b11111110;//8
 nine =  0b11110110;//8

Serial.println(zero,DEC);
Serial.println(one,DEC);
Serial.println(two,DEC);
Serial.println(three,DEC);
Serial.println(four,DEC);
Serial.println(five,DEC);
Serial.println(six,DEC);
Serial.println(seven,DEC);
Serial.println(eight,DEC);
Serial.println(nine,DEC);



digitalWrite(latchPin1, LOW);
shiftOut(dataPin1, clockPin1, LSBFIRST, 246);
digitalWrite(latchPin1, HIGH);
  

}


void loop() {
  
  //pattern = ~pattern; // Invert the pattern
}
74HC595