char angka[]={B10000000, B11111001, B01000100, B01100000, B00101001, B00100010};
int pinLED[]={0,1,2,3,4,5,6,7};
int jumlahPIN= 8;
void setup() {
for (int x =0; x < jumlahPIN; x++)
{
pinMode(pinLED[x], OUTPUT);
}
}
void loop(){
PORTD = angka [0];
delay (500);
PORTD = angka [1];
delay(500);
PORTD = angka [2];
delay(500);
PORTD = angka [3];
delay(500);
PORTD = angka [4];
delay(500);
PORTD = angka [5];
delay(500);
}