// By Nissanka MD COTM
#define PinDP 2
#define PinC 3
#define PinD 4
#define PinE 5
#define PinG 6
#define PinF 7
#define PinA 8
#define PinB 9
void setup() {
// put your setup code here, to run once:
for (int i=2; i<10; i++){
pinMode(i,OUTPUT);
}
// To test connections
for (int i=2; i<10; i++){
digitalWrite(i,HIGH);
delay(100);
}
delay(1000);
for (int i=2; i<10; i++){
digitalWrite(i,LOW);
delay(100);
}
delay(1000);
// Display 1
digitalWrite(PinB, HIGH);
digitalWrite(PinC, HIGH);
delay(2000);
// Display 2
digitalWrite(PinA, HIGH);
digitalWrite(PinB, HIGH);
digitalWrite(PinC, LOW);
digitalWrite(PinD, HIGH);
digitalWrite(PinE, HIGH);
digitalWrite(PinG, HIGH);
delay(2000);
}
void loop() {
// put your main code here, to run repeatedly:
}