Activity 2.2.6. Button Exercises.
(a)
Modify
blinkyCNT.c so that pressing the button pauses the counter and releasing resumes it.
(b)
Homework (due Thursday): Write
toggleLED.c so the on-board LED toggles each time the button is pressed and released: first press turns LED on, second press turns it off, and so on. You will likely observe erratic behavior (“glitches”). Bring your observations to class tomorrow.
