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
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview