Question: Hello I need help creating this code in C language thanks. Im using GPIO pins for the buttons and LEDS. Thanks - When Button 0

Hello I need help creating this code in C language thanks. Im using GPIO pins for the buttons and LEDS. Thanks
-When Button0 is pressed, LED0 turns ON. When Button0 is released, LED0 turns OFF.
-When Button1 is pressed, LED1 turns ON. When Button1 is released, LED1 remains ON. When Button 1 is pressed
again, LED1 turns OFF. When Button1 is released again, LED1 remains OFF. This falling-edge toggling cycle should
continue forever.
-When Button2 is pressed, LED2 remains OFF. When Button2 is released, LED2 turns ON. When Button2 is pressed
again, LED2 remains ON. When Button2 is released again, LED2 turns OFF. This rising-edge toggling cycle should
continue forever.
-LED3 will turn and remain ON after Button3 has been pressed two times. LED3 will then toggle OFF after Button3 has
been pressed two additional times. You can choose rising-edge or falling-edge. This toggling-cycle should continue
forever.
-All Button inputs and LED outputs should be active LOW.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!