int katodaLED[]={22,23,24,25,26,27,28,29};
int anodaLED[]={37,36,35,34,33,32,31,30};
int jeda=10;

void setup() {
  // put your setup code here, to run once:
  for (int nmr=0;nmr<8;nmr++)
  {
    pinMode(katodaLED[nmr], OUTPUT);
    pinMode(anodaLED[nmr], OUTPUT);
  }
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTA=B11111101;PORTC=B01111110;delay(jeda);
  PORTA=B11111011;PORTC=B01100000;delay(jeda);
  PORTA=B11110111;PORTC=B01111100;delay(jeda);
  PORTA=B11101111;PORTC=B00000110;delay(jeda);
  PORTA=B11011111;PORTC=B00000110;delay(jeda);
  PORTA=B10111111;PORTC=B01100110;delay(jeda);
  PORTA=B01111111;PORTC=B00111100;delay(jeda);
}