Arduino Forum
Randomly Alternate LED pins
Using Arduino
LEDs and Multiplexing
PaulRB
May 27, 2019, 6:41pm
9
ledPin1 = myPins[random(10,12)];
No, the array indexes are 0 and 1, not 10 and 11.
show post in topic
Related Topics
Topic
Replies
Views
Activity
Blinking LEDs for a set number of times followed by another action
LEDs and Multiplexing
15
16173
May 6, 2021
blink LED randomly
Programming Questions
9
1726
May 5, 2021
Random blink help
Project Guidance
5
874
May 5, 2021
Make 2+ leds blink random
Interfacing
4
15918
May 6, 2021
Randomly blinking multiple LED's without delay
LEDs and Multiplexing
2
2676
May 6, 2021