Question: 5. Here is a flow chart of some algorithm. Please write an Arduino code which will accomplish the same. (5 points) You'll have to define

5. Here is a flow chart of some algorithm. Please write an Arduino code which will accomplish the same. (5 points) You'll have to define your own variables even though that "slight detail" is not included in the flowchart. Also, please write down why the stop box in this code is not connected (Test out your code in Tinker cad to see if it actually works, before submitting the assignment) Start Set pin 7, 8 as outputs this is where LEDs are connected) Set pin 9 as input this is where a button is connected Begin serial communication Read the voltage at pin 9 Heo is valtage HIGH Yes Serial print "button is Turn the red led on pin-8 ON Turn the green led on pin-7 OFF Turn the green led an pin-7 ON Turn the red led on pin-B OFF Stop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
