-
Notifications
You must be signed in to change notification settings - Fork 0
Begin
K Gray edited this page Apr 16, 2022
·
1 revision
The begin() function is used to setup the pins for controlling motor drivers / linear actuators.
Gate.begin(int pin1, int pin2, int pin3, int pin4, int direction);
The four pins can be in plain format (i.e. 2) or digital (i.e. D4). The direction integer is set to 1 normally, but can be set to 2 if you find your gates to be going "backwards".