我想找...

搜尋

分享

目錄

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 參考的文本是根據 知識共享署名-相同方式分享 3.0 許可證,部分文本是從 Arduino 參考 修改的。 參考中的代碼示例已發佈到公共領域。

返回頂端