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 functionalint PGMPin ;int motorDirectionPin;int motorDirectionPin;int fwdBtn ;int stopBtn ;void setup put your setup code here, to run once:pinMode PWMPin OUTPUT;pinMode dir INPUT;pinMode dir OUTPUT ;void loop put your main code here, to run repeatedly:analogWrite PGMPin;if digitalReadfwdBtn HIGH & digitalReadstopBtn LOWdigitalWrite dir HIGH;digitalWrite dir LOW;else if digitalReadstopBtn HIGH && digitalReadfwdBtn HIGHdigitalWrite motorDirectionPin LOW;digitalWrite motorDirectionPin HIGH;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
