void setup() {
// put your setup code here, to run once:
initpin();
display(LOW, LOW, LOW, LOW, LOW, LOW, LOW, LOW);
}
void loop() {
// put your main code here, to run repeatedly:
}
void display(char a, char b, char c, char d, char e, char f, char g, char h) {
digitalWrite(2, a);
digitalWrite(3, b);
digitalWrite(4, c);
digitalWrite(5, d);
digitalWrite(6, e);
digitalWrite(7, f);
digitalWrite(8, g);
digitalWrite(9, h);
}
void initpin() {
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
}