Start Countdown Automatically when powered on

Store Forums Defusable Clock General Discussion Start Countdown Automatically when powered on

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #793
    gjohn282
    Member

    I’m very much a noob for C++ so be gentle. But I’m trying to updated the code so that it bypasses the red button (DET) that you manually have to press to start the countdown. I’d like it to start the countdown automatically when powered on. Thanks!

    Default code:
    https://gist.github.com/anonymous/a5acc051ae6157e6e7f1

    #2368
    Michael
    Keymaster

    Just add these lines at the beginning of loop():

    countdownSeconds = defaultCountdownSeconds;
    displayCountdown = true;
    countdown()
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.