Question: Problem: Build the circuit given below and write a program that achieves following functionality. Accept input from user through Serial Monitor and store in int

Problem: Build the circuit given below and write a program that achieves following functionality. Accept
input from user through Serial Monitor and store in int variable. Read digital input on pin 2 and 3. Turn
on LED on pin 4(called LED4):
1. If user supplies 1 on Serial Monitor, LED4 turns ON if both switches are pressed (Logic AND)
2. If user supplies 2 on Serial Monitor, LED4 turns ON if either of switch is pressed (Logic OR)

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!