//int pin[] = {2,5,6,7,10,11};
int pin[10];
//int RND = random(2,12);
int tombelemszama = sizeof(pin) / sizeof(int);
void setup() {
for(int i = 0; i < tombelemszama; i++){
pinMode(i, OUTPUT);
}
Serial.begin(115200);
}
void loop() {
for(int i = 0; i < tombelemszama; i++){
pin[i] = random(2,12);
digitalWrite(pin[i],HIGH);
delay(500);
digitalWrite(pin[i],LOW);
}
/*for(int i = 0; i < tombelemszama; i++){
digitalWrite(pin[i], HIGH);
delay(500);
}
for(int i = tombelemszama-1; i > -1; i--){
digitalWrite(pin[i], LOW);
delay(500);
}*/
}