Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Event Loops and Timing
Grade Level
Computer Science
HSCS.242 Event Loops and Timing
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A timer wraps from 65535 to 0 while a debounced button is being held. Which implementation is most robust?
A
Reset the microcontroller every time the timer gets close to 65535.
B
Use unsigned elapsed-time subtraction for both debounce timing and hold-duration timing.
C
Compare now directly to lastChange + interval using signed values only.
D
Disable debounce near rollover and trust raw button edges.
Submit Answer