Start Countdown Automatically when powered on

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

This topic contains 1 reply, has 2 voices, and was last updated by  Michael 3 years, 6 months ago.

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.