Blah to that title, cut it was the best I could come up with.
I’m working with a local race track to refurbish the lap counter that was originally installed in the 1970s and has way too many hands in it (wires not labeled, spliced with different types/colors, you know the deal).
I poorly programmed a lap counter (they still want to increment it manually) and the code is attached.
What I want to know is:
Is there a way to create a variable that controls multiple outputs simultaneously.
Code snippet and methodology:
onesUR = the upper-right segment in a 7 segment number box.
Up = up button
Dn = Dn button
Reset = resets the counter back to zero
Create variables for each number and position, so I would have a variable for
onesONE that would turn on and off the necessary relays to display a two on the board that I could reference. Perhaps even an allOFF that turns off all relays or allON that turns them all on allowing even more cleanup. I need this because programming every bar to reset to calculate for up or down button presses will use all the memory after 100 laps and this counter needs to go to 250.
Then in my actual counter section, I can just reference these variables.
::edit:: I apologize for forgetting my code. I added it, but it made me wait 5 minutes.
This seems like it would be very easy to do, I just lack the experience.
scoreboard_v.2.ino (5.65 KB)