Go Down

Topic: Row of LEDs on large bread board, only half work (Read 725 times) previous topic - next topic

Hi all,

How come only half of my LEDs are lighting up?



void setup() {
  for (int i = 1; i < 8; i++) {
    pinMode(i, OUTPUT);
  }   
}

void loop() {
  for (int i = 1; i < 8; i++) {
    digitalWrite(i, HIGH);
  }   
}

thanks!

groundfungus

#1
Oct 04, 2013, 04:25 am Last Edit: Oct 04, 2013, 04:32 am by groundfungus Reason: 1
You may need to bridge across the center of the horizontal power and ground busses.  

Thanks for the very quick reply. Connecting a bridge to the ground solved this issue.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy