ServoFrame builder

[Servo86]

説明

Initializes the ServoFrame class.

Syntax

ServoFrame myframe
ServoFrame myframe(filename)

Parameters

filename: The name of the action frame file. If you enter a filename, ServoFrame will automatically load the content of the file as the initial action frame when initializing the category. Please note that you must put the action frame file in the root directory of the SD card; if your 86Duino is not placed in the SD card, or the SD card does not contain the action frame file, then the file loading will fail.

Example

#include <Servo86.h>
 
Servo myservo1;
Servo myservo2;
Servo myservo3;
ServoFrame myframe("frame.txt"); // Load motion frame with file name frame.txt from SD card
 
void setup()
{
   myservo1.attach(21);
   myservo2.attach(23);
   myservo3.attach(25);
 
   myframe.setPositions();
   servoMultiRun();
}
 
void loop() {}

See also


Libraries Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

コメントする

上部へスクロール