int ledK[]={22,23,24,25,26,27,28,29};
int ledA[]={37,36,35,34,33,32,31,30};
int jeda=5;
void setup() {
for (int i = 0; i < 8; i++)
{
pinMode(ledK[i], OUTPUT);
pinMode(ledA[i], OUTPUT);
}
}
void loop() {
PORTA=B11111111; PORTC=B00000000; delay(jeda);
PORTA=B11111101; PORTC=B01000010; delay(jeda);
PORTA=B11111011; PORTC=B10100101; delay(jeda);
PORTA=B11111111; PORTC=B00000000; delay(jeda);
PORTA=B11101111; PORTC=B00011000; delay(jeda);
PORTA=B11011111; PORTC=B01000010; delay(jeda);
PORTA=B10111111; PORTC=B00111100; delay(jeda);
PORTA=B01111111; PORTC=B00011000; delay(jeda);
}