Hi,
i have an intermediate understanding in electronics, and semi beginner at arduino. Im trying to learn c through arduino but using things like leds as output not printf. Maybe im wrong in trying to mesh these two things togther, dunno.
I didnt use a setup and loop becouse it seemed redundant to me to make a loop function if im already trying to use a for loop. And cant use pinMode in setup becouse i want to increment a pinMode variable by one every time it passes true through a loop...
It Works like this: The first led turns on, waits a few seconds than every led connected turns on simultaniously. I was hoping, because it increments the variable in the pinMode(oldVal, OUTPUT) it Will keep only one led ON at any moment because the code only specifys only one pinMode output at a time..
