Go for smoke u are a genious. You gave me an idea and i added :
while(counter < 1000000) { //just a manual delay funct cuz the original one did not work at all
counter++;
}
counter=0; //reset which i added <-------------------------
}
return 0;
}
Probably should have just use a constant long long "variable" but still..
Now my delay actually works:).It turnes one led on, waits a period of time than the other,waits a period of time, than the other etc till i end up at the last led.
Still dosent work as it should or should i say as i want it to. But its a starter.
Still i dont understand if i increment the pinMode(oldVal, OUTPUT) why are all the leds still on or i should say the led before dosent lose the OUTPUT status.