Throughout this assignment, you may find some Raspberry Pi Pico tutorials such as https://electrocredible.com/raspberry-pi-pico-external-interrupts-button-micropython/ and https://www.hackster.io/Ramji_Patel/raspberry-pi-pico-and-button-321059 useful in configuring your supplies to complete these deliverables. Note that many of these tutorials use MicroPython, while you will be asked to code in C for this assignment.
You will be asked to DEMONSTRATE the coding portion of this in class or office hours. Demos can happen after the deadline as long as they use the code that was submitted.
Deliverable A
Deliverable B
Modify your code from A to use an interrupt service routine. HINT: you may need to look into button debouncing. Buttons are noisy devices and often report multiple contacts for one press. Adding a short delay before checking again can fix that.
Deliverable C
Use the same circuit setup as in B. Write C code that counts the number of times the button is pressed and repeatedly blinks the LED the number of times counted. Specifically:
Part 1 Demo
Part 2: 10 points