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() {
for (int nmr=0;nmr<8;nmr++)
{
pinMode(katodaLED[nmr], OUTPUT);
pinMode(anodaLED[nmr], OUTPUT);
}
}
void loop() {
PORTA=B11111110;PORTC=B00000000;delay(jeda);
PORTA=B11111101;PORTC=B01000010;delay(jeda);
PORTA=B11111011;PORTC=B10100101;delay(jeda);
PORTA=B11110111;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);
}