Lesson 10-4 (simple debounce) does the do-while loop block / eat CPU cycles? #222
Unanswered
kevin-mitchell
asked this question in
Course Qeustions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a very basic question I realize, but I'm wondering if in this particular queue task we are "undoing" the good we did by moving the
while(true)
loop looking for button presses to interrupts / a queue? If, for example, somebody pressed the button and held it down for a minute, would this block the remaining application logic from being executed while we were stuck in the do/while loop?https://github.com/Mair/esp32-course/blob/master/_10_gpio/_10_4_simple_debounce/main/main.c#L28-L31
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions