Arduino - Servo.attached()

Description

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.

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Please note: These are Amazon affiliate links. If you buy the components through these links, We will get a commission at no extra cost to you. We appreciate it.

※ OUR MESSAGES