Pages: 1 [2]   Go Down
Author Topic: Need Guidance on Pausing and Resuming 4 Digit 7 Segment LED Countdown Clock  (Read 2482 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Code:
...
  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?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26378
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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.

Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 [2]   Go Up
Jump to: