Attaches servo motor to a digital pin. Only digital pins supporting PWM (D3, D9) can use this function.
|
Parameters |
Description |
|
int pin |
The pin which needs servo attachment. |
|
int min |
(Optional)lower bound of PW, ms; PWM when servo motor is at 0 degree (default: 544). |
|
int max |
(Optional)upper bound of PW, ms, PWM when servo motor is at 180 degrees (default: 2400). |
Channel number or
0: Failed.
Servo.h