サイト内検索

検索

Shares

Table of Content

ServoFrameInno.load()

[Servo86]

説明

Load the .ftxt action frame file created by Innovati action editor.

構文

myframe.load(filename)

媒介変数

  • myframe: the object of ServoFrameInno type.
  • filename: the name of the action frame file saved by Innovati Action Editor. Note: This function will only look for action files under the root directory of the SD card. If your 86Duino is not inserted into the SD card, or if there is no specified file on the SD card, loading will fail.

戻り値

  • true: The file was loaded successfully.
  • false: File loading failed.

#include <Servo86.h>
  
Servo myservo1;
Servo myservo2;
Servo myservo3;
ServoFrameInno myframe;
 
void setup()
{
   myservo1.attach(9);
   myservo2.attach(11);
   myservo3.attach(5);
 
   // Load Frame0.ftxt action frame file
   myframe.load("Frame0.ftxt");
 
   myframe.playPositions(myservo1, myservo2, myservo3); // play action frames
}
  
void loop() {}

See also


Libraries Reference Home

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

上部へスクロール