How Can I Accurately Calculate 10 Minutes? #1194
Unanswered
krishank652
asked this question in
Q&A
Replies: 1 comment
-
Set your PIT so it wakes up the MCU every 1 second.
Then use the for loop counter that you already have and let it count to 600. You will then exit your for loop every 10 minutes. You don't need millis() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Community,
I need assistance with calculating time accurately even when the CPU is in sleep mode. How can I achieve this?
When I use millis();, it doesn't work as expected. The increment of milliseconds pauses whenever the CPU enters sleep mode.
Below is the Example
Beta Was this translation helpful? Give feedback.
All reactions