Question: Using MSP430 Thank you! Write a program in C to modify the state of LED1 and LED2 depending upon whether SW1 or SW2 is pressed.
Using MSP430

Thank you!
Write a program in C to modify the state of LED1 and LED2 depending upon whether SW1 or SW2 is pressed. At program startup, both LEDs should be turned off. As long as SW1 is pressed, LED1 should be turned on. While SW2 is pressed, LED2 should blink at 1Hz frequency. [100 pts] Summary: No Switch Pressed SW1 Pressed SW2 Pressed LED1 Off orm Off Off Off 1Hz Bonus (10 pts): If both switches are pressed at the same time, both LED1 and LED2 should begin blinking alternately approximately at 2 Hz. When both switches are released, both LED1 and LED2 should turn off
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
