#include "SR_iParol.h"

void setup() {
 
SR_Init();
}

void loop() {
  blinkRedDiamonds();
  blinkBlueAndGreenDiamonds();
  blinkOrangeAndBlueDiamonds();
  blinkRedandGreenDiamonds();
  blinkYellowAndRed();
}


void blinkRedDiamonds(){
 write(14,HIGH);
 delay(100);
 write(14,LOW);
 delay(100);
 
 
 
}

void blinkBlueAndGreenDiamonds(){
  write(33,HIGH);
  write(48,HIGH);
  write(46,HIGH);
  write(7,HIGH);
  write(6,HIGH);
  write(21,HIGH);
  write(20,HIGH);
  write(34,HIGH);
  write(44,HIGH);
  write(52,HIGH);
  write(4,HIGH);
  write(12,HIGH);
  write(19,HIGH);
  write(26,HIGH);
  write(31,HIGH);
  write(39,HIGH);
  delay(100);
  write(33,LOW);
  write(48,LOW);
  write(46,LOW);
  write(7,LOW);
  write(6,LOW);
  write(21,LOW);
  write(20,LOW);
  write(34,LOW);
  write(44,LOW);
  write(52,LOW);
  write(4,LOW);
  write(12,LOW);
  write(19,LOW);
  write(26,LOW);
  write(31,LOW);
  write(39,LOW);
  delay(50);
}  

void blinkOrangeAndBlueDiamonds(){
  write(35,HIGH);
  write(47,HIGH);
  write(8,HIGH);
  write(22,HIGH);
  write(40,HIGH);
  write(40,HIGH);
  write(0,HIGH);
  write(13,HIGH);
  write(27,HIGH);
  delay(100);
  write(35,LOW);
  write(47,LOW);
  write(8,LOW);
  write(22,LOW);
  write(40,LOW);
  write(40,LOW);
  write(0,LOW);
  write(13,LOW);
  write(27,LOW);
  delay(100);

}

void blinkRedandGreenDiamonds(){
  write(38,HIGH);
  write(43,HIGH);
  write(51,HIGH);
  write(1,HIGH);
  write(11,HIGH);
  write(17,HIGH);
  write(25,HIGH);
  write(28,HIGH);
  delay(100);
  write(38,LOW);
  write(43,LOW);
  write(51,LOW);
  write(1,LOW);
  write(11,LOW);
  write(17,LOW);
  write(25,LOW);
  write(28,LOW);
  delay(100);

}

void blinkYellowAndRed(){
  write(41,HIGH);
  write(42,HIGH);
  write(49,HIGH);
  write(50,HIGH);
  write(2,HIGH);
  write(3,HIGH);
  write(9,HIGH);
  write(10,HIGH);
  write(15,HIGH);
  write(16,HIGH);
  write(23,HIGH);
  write(24,HIGH);
  write(29,HIGH);
  write(30,HIGH);
  write(36,HIGH);
  write(37,HIGH);
  delay(100);
  write(41,LOW);
  write(42,LOW);
  write(49,LOW);
  write(50,LOW);
  write(2,LOW);
  write(3,LOW);
  write(9,LOW);
  write(10,LOW);
  write(15,LOW);
  write(16,LOW);
  write(23,LOW);
  write(24,LOW);
  write(29,LOW);
  write(30,LOW);
  write(36,LOW);
  write(37,LOW);
  delay(100);

}
74HC595
74HC595
74HC595
74HC595
74HC595
74HC595
74HC595