Question: C with Switch and LED (12 pts) Write a C program for the MSP 430, using switch 1 (S1) to control LED1, switch 2 (S2)

C with Switch and LED (12 pts) Write a C program for the MSP 430, using switch 1 (S1) to control LED1, switch 2 (S2) to control LED2 separately. Use pullup resistors for the switch. LED1 is P1.0, LED2 is P1.1, S1 is P1.6, S2 is P1.7 5. a. if press S1, LED1 is on b. if press S2, LED2 is on; c. if press both, both LEDs are on; d. Make comments on each line of code to explain your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
