r/arduino•
Goboosh

Help needed for code for an Arduino project!

Help! I need some code for this Arduino project I am working on, and I cannot seem to get it right. here is a link to a virtual version on tinkercad, but it will expire after a while. (336 hours) if you could put the code in text version, that would be preferable. here is what the code is supposed to do:

when you press the button, it will advance to the next led. if you set the "player" variable to 5, it will loop back around when it hits number 6, and so forth. this way you can set a certain number of players without having to change the code that much. the goal is to have a circuit that will keep track of whoever's turn it is during a board game. link: https://www.tinkercad.com/things/cdJJDc4wGve-copy-of-game-turn-controller-first-prototype/editel?tenant=circuits?sharecode=TYcSkbkhlNEbbmBcgaTVBdFb9-5jpd8OoGRDSD0A21s

video showing the code and the circuit

Posted Jun 4, 2020, 11:35 PM UTC · edited

03
Loading comments…