

Display digit for fraction of a second (1us to 5000us, 500 is pretty good) Turn on the right segments for this digit Turn on a digit for a short amount of time Int start_num = 100 // Number to countdown fromĭisplayNumber(start_num -((millis()/1000))) THIS PROGRAM ALLOWS YOU TO PUSH A BUTTON TO START A PRE-DETERMINED COUNTDOWN TIMER.Ĭonst int lap1 = 0 //Add name of lap or courseĬonst int lap2 = 1 //Add name of lap or courseĬonst int lap3 = 12 //Add name of lap or courseĬonst int lap4 = 13 //Add name of lap or courseĬonst int lap5 = A2 //Add name of lap or courseĬonst int lap6 = A3 //Add name of lap or course I've attempted to interrupt the count with the inputs but although it seems to do something it does not do what i want it to do.
MULTIPLE COUNTDOWN TIMERS IN ARDUINO CODE CODE
This is the base code for my seven segment display (i like it because of the PWM feature for segment brightness). This way I will have a reference to push myself harder to finish the course faster than the last time I rode it.

You will press the appropriate button for the appropriate track that you are on and it will start counting down you last know best lap time (which for now you have to input by updating the program). In the end, what I'm trying to do is make a lap timer for a mountain bike course. I would like to allow any of the timer inputs to interrupt the current count at any timer. When you press a button for that input, the timer sets itself to that pre-specified value and starts counting down to zero. Each input will have a time associated with it. I want to make a multi-input countdown timer (4x7 segment). I've done or gone through most to the examples so I do understand the basics. I've done some PLC ladder logic stuff before but I'm having issues comprehending this language.

First of all, I'm a total newbie to arduino and to this level of programming.
