Go Down

Topic: Need Guidance on Pausing and Resuming 4 Digit 7 Segment LED Countdown Clock (Read 3 times) previous topic - next topic

SteveOr



Code: [Select]

...
 if ((time_running == 1) || (time_running == 2))  // fencing time is counting down or delay time is counting down
 {
   ...



Is this where your button press is a factor?  If so, how do you make your sketch send these values?

CrossRoads

No, there is another area for keypresses. Once a keypress happens, that part turns these flags off if they were on.  This section then gets passed over until something happens to turn one of these on again.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

SteveOr

Then how does the "if ((time_running == 1) || (time_running == 2))" work in your sketch?

Go Up