ServoFrame builder

[Servo86]

描述

Initializes the ServoFrame class.

語法

ServoFrame myframe
ServoFrame myframe(filename)

參數

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.

範例

#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() {}

參考


函式庫參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

上部へスクロール