Question: You are required to walk through the code and make any changes to make it functional + / / int PGMPin = 1 0 ;int

You are required to walk through the code and make any changes to make it functional+//int PGMPin =10;int motorDirectionPin1=6;int motorDirectionPin2=7;int fwdBtn =10;int stopBtn =13;void setup(){// put your setup code here, to run once:pinMode (PWMPin, OUTPUT);pinMode (dir1, INPUT);pinMode (dir2, OUTPUT) ;}void loop (){// put your main code here, to run repeatedly:analogWrite (PGMPin,255);if (digitalRead(fwdBtn == HIGH & digitalRead(stopBtn)== LOW)digitalWrite (dir1, HIGH);digitalWrite (dir2, LOW);}else if (digitalRead(stopBtn)== HIGH && digitalRead(fwdBtn)== HIGH){digitalWrite (motorDirectionPin1, LOW);digitalWrite (motorDirectionPin2, HIGH);}}}
 You are required to walk through the code and make any

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 Databases Questions!