Arduino参考

Arduino参考 > Libraries > Servo > attached()

Servo.attached()

Check whether the Servo variable is attached to a pin.

Syntax

servo.attached()

Parameters

  • servo: a variable of type Servo

Returns

true if the servo is attached to pin; false otherwise.