1. Engineering
  2. Computer Science
  3. i need c program and screenshot with output...

Question: i need c program and screenshot with output...

Question details

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 and as long as SW2 is pressed, LED1 and LED2 should blink at 5Hz alternately. Summary: 1. LED1 Off No Switch Pressed SW1 Pressed SW2 Pressed After Releasing SW1/sW2 LED2 Off Off 5Hz alternately) Off 5Hz Off

I need C program and screenshot with output

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution