Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello, I need help with the following prompt question. so basically, using a code written in C that will have two switches and when pressed
Hello, I need help with the following prompt question. so basically, using a code written in C that will have two switches and when pressed & held, LED's 1 & 2 will turn on. When the switches are not being pressed then LED 1 will blink and LED 2 turns off. I wrote the code in screenshots below for having one LED turn on and blink when the switch is pressed but need the code to do the opposite. I also need the system to work with the example in the prompt above, anything at this point will help, thank you!
LEDs controlled by 1+ switches, eg. When both switches are pressed & hold, LEDs 1 & 2 turn on, otherwise LED 1 blinks and LED2 turns off, etc LEDs controlled by 1+ switches, eg. When both switches are pressed & hold, LEDs 1 & 2 turn on, otherwise LED 1 blinks and LED2 turns off, etcStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started