Complete the code to include the Stepper library.
#include <[1]>
The Stepper library controls stepper motors. Including Stepper.h allows us to use its functions.
Complete the code to create a Stepper object with 200 steps per revolution.
Stepper myStepper([1], 8, 9, 10, 11);
Most common stepper motors have 200 steps per revolution. This number tells the library how many steps to make a full turn.
Fix the error in setting the motor speed to 60 RPM.
myStepper.[1](60);
The correct function to set speed in RPM is setSpeed(). Other options are invalid or do not exist.
Fill both blanks to move the motor 100 steps forward.
myStepper.[1]([2]);
The step() function moves the motor a number of steps. Here, 100 steps moves it forward.
Fill all three blanks to create a Stepper object with 4 control pins and 100 steps per revolution.
[1] [2]([3], 6, 7, 8, 9);
The first blank is the class name Stepper. The second is the object name motor. The third is the number of steps 100. Using four pins indicates 4 control pins.
