Articles Posted by the Author:

  • write()

    write()

    説明 サーボの目標角度を設定し、目標角度に向かって回転させます。この関数を呼び出すと、サーボは即座に力を加えます。怪我や損傷を防ぐため、サーボを手動で回転させないでください。 構文 servo.write(position) パラメーター servo: AIServo 型の変数。 position: 目標角度。浮動小数点値を入力します。例えば、90.0 は目標位置(度)を示し、サーボは90度の位置にあることを意味します。 ポストバック なし 例 1 2 3 4 5 6 7 8 9 10 11 12 13 #include <AIServo86.h>   AIServoPort(ROBOTIS, AX12) bus; AIServo myservo;   void setup() {   bus.begin(Serial1, 1000000);   myservo.attach(bus, 9);   myservo.write(90.0);  // サーボを90度回転させます }   void loop() {} 参照 - attach() - […]


  • attached()

    attached()

    説明 この AIServo オブジェクトが attach() を使用して初期化されているかどうかを確認します。 構文 servo.attached() パラメータ servo: AIServo 型の変数。 戻り値 true: 初期化済みであることを示します false: 初期化されていないことを示します 参照 – attach() – detach() プログラムリファレンスホーム 86Duino リファレンス資料のテキストは、Arduino リファレンス資料 から改変されており、Creative Commons Attribution-Share Alike 3.0 License に基づいてライセンスされています。リファレンス資料内のコード例はパブリックドメインとして公開されています。


  • AIServo constructor

    AIServo constructor

    説明 AIServo オブジェクトを初期化します。 文法 AIServo myservo パラメータ なし 例 1 2 3 4 5 6 7 8 9 10 11 12 13 #include <AIServo86.h>   AIServoPort(ROBOTIS, AX12) bus; // ROBOTIS AX-12サーボを制御するためのバスを初期化します AIServo myservo; // myservo を初期化します   void setup() {   bus.begin(Serial1, 1000000); // バスで使用するシリアルポートを Serial1 に設定し、ボーレートを 1000000 に設定します   myservo.attach(bus, 9); // myservo をバスに接続します。myservo の ID […]



  • Adafruit RGB Matrix Panel Library

    Adafruit RGB Matrix Panel Library

    This library is available from 86Duino Coding 300 and is the 86Duino porting of the RGB Matrix Panel library to support Adafruit’s 16×32 and 32×32 RGB LED matrix panels. One can refer to Adafruit’s tutorial pages for the usage of this library. DEMO VIDEO Libraries Reference Home The text of the 86Duino reference is licensed […]