Skip to content

Commit

Permalink
Merge pull request #10 from tjfsteele/main
Browse files Browse the repository at this point in the history
Update Timer.cpp
  • Loading branch information
t0mg authored Dec 10, 2023
2 parents 0376f7e + b27dc02 commit cb75cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions software/wordclock/src/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void Timer::setup(std::function<void()> callback, uint32_t delay_seconds)

void Timer::start()
{
timer_ = timerBegin(3, 8000, 1); //div 80
timer_ = timerBegin(1, 8000, 1); //div 80
timerAttachInterrupt(timer_, &onTimer_, 1);
timerAlarmWrite(timer_, delay_seconds_ * 10000, true); //1000ms
timerAlarmEnable(timer_);
Expand Down Expand Up @@ -57,4 +57,4 @@ void Timer::loop()
callback_();
}
}
}
}

0 comments on commit cb75cc6

Please sign in to comment.