[Servo86]
説明
Save the contents of the positions[] array to the specified action frame file.
構文
myframe.save(filename)
媒介変数
myframe: the object of ServoFrame type.filename: the name of the action frame file. Note: The file will be saved to the root directory of the SD card. If your 86Duino is not inserted into the SD card, the storage will fail.
戻り値
- true: The file was saved successfully.
- false: File saving failed.
例
#include <Servo86.h>
ServoFrame myframe;
void setup()
{
myframe.positions[0] = 1800; // set the action frame content
myframe.positions[1] = 1300;
myframe.positions[2] = 2000;
myframe.save("frm0.txt"); // save the motion frame as "frm0.txt" in the root directory of the SD card
}
void loop() {}参照
ライブラリリファレンスホーム
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。