[AIServo86]
Description
Mount AIServo.
Syntax
servo.attach(bus, ID)
Parameters
servo
: Variable of the AIServo type.bus
: The object generated by the AIServoPort (Vendor, Servo) declaration.ID
: The ID of the servo.
Returns
None.
Example
#include <AIServo86.h> AIServoPort(ROBOTIS, AX12) bus; AIServo myservo; void setup() { bus.begin(Serial1, 1000000); myservo.attach(bus, 9); // mount myservo to the bus, and the ID of myservo is 9 } void loop() {}
See also
Libraries Reference Home
The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.