int pinLED[] = {22,23,24,25,26,27,28,29};
int jumlahPIN = 13;
int angka[] = {B10100100, B11111111, B10100100, B01111111,
B11111001, B11111111, B11111001, B01111111,
B10010010, B11111001, B10000000,
B11111000, B11111111};
void setup() {
// put your setup code here, to run once:
for(int ito = 0; ito < jumlahPIN; ito++){
pinMode(pinLED[ito], OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
for(int ito = 0; ito < jumlahPIN; ito++){
PORTA = angka[ito];
delay(1000);
}
}