#define PIN_LINKS 27
#define PIN_RECHTS 12
#define PIN_LED0 15
#define PIN_LED1 2
#define PIN_LED2 4
#define PIN_LED3 5
#define PIN_LED4 18
#define PIN_LED5 19
#define PIN_LED6 21
#define PIN_LED7 22
//globale Variable
int iLED [8];
void setup() {
iLED[0]=PIN_LED0;
iLED[1]=PIN_LED1;
iLED[2]=PIN_LED2;
iLED[3]=PIN_LED3;
iLED[4]=PIN_LED4;
iLED[5]=PIN_LED5;
iLED[6]=PIN_LED6;
iLED[7]=PIN_LED7;
pinMode(PIN_LINKS, INPUT_PULLUP);
pinMode(PIN_RECHTS, INPUT_PULLUP);
}
void loop() {
int iIndex;
iLED[0]=15;
iLED[1]=2;
iLED[2]=4;
iLED[3]=5;
iLED[4]=18;
iLED[5]=19;
iLED[6]=21;
iLED[7]=22;
for (iIndex=0;iIndex<8;iIndex++){
digitalWrite(iLED[iIndex], HIGH);
delay(500);
pinMode(iLED[iIndex], OUTPUT);
}
}