[AIServo86]
説明
Mount AIServo.
構文
servo.attach(bus, ID)
媒介変数
servo: Variable of the AIServo type.bus: The object generated by the AIServoPort (Vendor, Servo) declaration.ID: The ID of the servo.
戻り値
なし
例
#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() {}参照
ライブラリリファレンスホーム
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。