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