First time poster, so a little background, I am new to the Arduino world, but have been programming in other languages for some time.
I am making a fun Cornhole set, with Leds around the edges and hole, that will double as a (manual) score tracker, (more fun features to come). The idea is on the board it self have a button for each team, and they hit the button to add a point. From this the code does its magic, and lights up x amount of leds on either side of the board to indicate a teams score. These leds are “bound” between two leds, (lit red for now) with 21 leds in between them.
Now all seems to be working until I get to 18 led’s on either side, (so I could have 17, on both sides lit up to the specific color, the rest of the board is in white). but as soon as I try to add the 18th point, it seems to “reset” my code. I do have a reset game function, but that does not get called until someone hits 21 anyway.
any help here would be appreciated. I will also post this project to the project board when complete.
code attached, using 100 leds with a 5v 40a power supply. so I do not think it is power related.
Cornhole.zip (1.35 MB)