-
Notifications
You must be signed in to change notification settings - Fork 0
Home
roebenack edited this page Jun 7, 2019
·
1 revision
To use the Motor Library you have to include the header file Motor.h first:
#include <Motor.h>
Then, you create an instance motor of the class Motor. No arguments are needed if you use the Arduino Motor Shield Rev3:
Motor motor;
However, you could specify the digital pins for the directs and the PWM signals. The formulation without arguments corresponds to
Motor motor(12, 13, 3, 11);
The first two arguments specify the directions for the two motors, the last two arguments the associated PWM pins.