I am working on a project for counting laps on Carrera Slot Car Tracks.
Everything is working except getting it to display on the Sparkfun 4 digit 7 Segment Display.
I am trying to get Track 1
s laps to count to digit 4 and 3 leftmost and Track 2s laps to count to digit 2 and 1 rightmost of the 7 segment shield.
It uses sprintf but I cant get the right code “%02d”? to display what I am trying to do.
I have also tried to manipulate the display by trying math counting of 1000
s and 1s which also does not work.
Can anyone please help?
CarreraLapCounter.ino (6.15 KB)