hello
I've just started to programming Arduino with some LED example and I want Know
why this code don't work correctly on my board:
- I have 6 LED to switch on sequentially, I use a for cycle to increment the numer of pin to switch on:
int pin=1;
void setup()
 {
  pinMode (pin,OUTPUT);
 }
Â
void loop()
 {
  for (pin=1; pin<7; pin++)
   {
    digitalWrite (pin,HIGH);
    delay (100);
    digitalWrite (pin, LOW);
    delay (100);
   }
  }
It doesn't work correctly because only LED 1 switch on with max luminance , other led switch on but not a full power (very poor),
only pin that I declared at begin works fine , why??