Hello alto777,
Here is a youtube link to how the LEDs should blink when the double-click works in the simulator, sometimes they don't blink correctly.
Here is a link to it NOT working
I really appreciate your help, I know my code could be smaller and tighter, and more professional looking but as for now here are my thoughts on coding as a hobby in Arduino code.
"There is a limit to how far you will get just hacking w/o knowing what you're (really) doing."
I don't think you can call plugging in code from someone else's code hacking. I used to program in Visual Basic 6 professional, way back, and I remember I had to pull customers email addresses out of a work order.
Well, that is not an easy task "you have to eliminate any characters that an email address can't use", try it. So instead of reinventing the wheel I found some code on the web, altered it a little for my program and it worked fine. If you look at the code to extract an email address from a text file it is very intimidating, sort of like algorithms for time and calendar calculations. I can look at the code I found, and understand in general what is happening, but may not understand every line of the code, but if it works, why reinvent the wheel?
So in my case with this double-click firing off code from another script, that I found, the only issue is the fact that with a double-click on button 5, 2 of my 4 LEDs 6 & 7don't turn off completely, and then turn back on, in the blink sequence like the other 2 LED's *8 & 9 do. I don't think that is a "word salad" as you mentioned. You can see it NOT working in the bumpForum.ino - Wokwi Arduino and ESP32 Simulator
I know my issue has to be hunted down in the script I posted, but I figured someone with more experience may be able to see the problem faster than I could.
By the way, I found another script that uses an array with a sequencer and for loops to blink LED's like police lights, I had to add code to it, edit it, and alter it, for my script, and I got it to work in my script, and it works with my button 5 double-click 100%.
I do not understand all the code in this new script I found but it works. I can study it and grasp it better when I have more time, again why reinvent the wheel if this script works.
Even though I solved my problem with this new script I found, I still would like to know what is happening in the script I posted here, as a learning experience.
I didn't want to add confusion and post the new script I have here but here is the link to the script I found and it works in my script perfectly with the button 5 double-click Fun with Arduino 22 Flashlights with a Step Sequencer, array[], for() loop Fun with Arduino 22 Flashlights with a Step Sequencer, array[], for() loop – Fun with Arduino
If you like I can post my new script that works with the original double-click call commented out. Let me know if you want to see it.
Thank you again for your help, and I hope you and the others who are helping in this issue, will still continue to try to find the issue with my script, which may be an easy fix, or not.