// LED muj potok

const int lowestPin = 2;      
const int highestPin = 9;
int a=0;
int b=0;
int c=0;
int thisPin=0;     

void setup() {
  // nastavení pinu od 2 do 9 LEDky jako výstupu  
  for(int thisPin = lowestPin;thisPin <= highestPin;thisPin++){
    pinMode(thisPin,OUTPUT);  // nastavení pinu jako výstupu
  }
}

void loop() {
  
  for (thisPin = lowestPin;thisPin <= highestPin;thisPin++) {

    a=thisPin;
    ;
    switch (a) {
      case 2: 
      b = highestPin;
      c = highestPin-1;
      break;
      
      case 3:
      c = highestPin;
      b = lowestPin;
      break;
      
      default:
      b = a-1;
      c = a-2;
      break;
     }

    analogWrite(a,255);
    analogWrite(b,130);
    analogWrite(c,80);

    // zapnout tuto LEDku 
    delay(1000);
    
    analogWrite(a,0);
    analogWrite(b,0);
    analogWrite(c,0);
  }
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
led1:A
led1:C
led2:A
led2:C
led3:A
led3:C
led4:A
led4:C
led5:A
led5:C
led6:A
led6:C
led7:A
led7:C
led8:A
led8:C
r1:1
r1:2
r2:1
r2:2
r3:1
r3:2
r4:1
r4:2
r5:1
r5:2
r6:1
r6:2
r7:1
r7:2
r8:1
r8:2