// 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 allOff(){
for (int i=2; i<10; i++){
digitalWrite(i,LOW);
}
}
void allOn(){
for (int i=2; i<10; i++){
digitalWrite(i,HIGH);
}
}
void one(){
allOff();
digitalWrite(pinB,HIGH);
digitalWrite(pinC,HIGH);
}
void three(){
allOn();
digitalWrite(pinE,LOW);
digitalWrite(pinF,LOW);
}
void setup() {
for (int i=2; i<10; i++){
pinMode(i,OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
three();
delay(1500);
allOff();
one();
delay(1500);
allOff();
}