Update examples/led_remote/led_remote.pde
Line 172 was using button_pins instead of led_pins. This caused leds to be lit dim when set to HIGH. Changed to correct var.
This commit is contained in:
parent
84e464def4
commit
49f22eae21
|
@ -169,7 +169,7 @@ void setup(void)
|
||||||
int i = num_led_pins;
|
int i = num_led_pins;
|
||||||
while(i--)
|
while(i--)
|
||||||
{
|
{
|
||||||
pinMode(button_pins[i],OUTPUT);
|
pinMode(led_pins[i],OUTPUT);
|
||||||
led_states[i] = HIGH;
|
led_states[i] = HIGH;
|
||||||
digitalWrite(led_pins[i],led_states[i]);
|
digitalWrite(led_pins[i],led_states[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue