leds[0]
this means the first LED.
Maybe that will help you understand. Good news is, everything is working as intended.
Change both leds[0] to leds[1] and see what happens.
leds[0]
this means the first LED.
Maybe that will help you understand. Good news is, everything is working as intended.
Change both leds[0] to leds[1] and see what happens.