[AIServo86]
描述
Save the current Frame to the specified file.
語法
aiservoframerobotis.save(filename)
參數
aiservoframerobotis
: Variant of the AIServoFrameRobotis type.filename
: 86Duino Frame file name. Please note that the file can only be saved to the root of the SD card. If your 86Duino does not have an SD card, saving will fail.
回傳
- true: File saving successfully.
- false: File saving failed.
範例
#include <AIServo86.h> AIServoFrameRobotis myframe; void setup() { myframe.positions[0] = 180; // set Frame content myframe. positions[1] = 130; myframe. positions[2] = 200; myframe.save("frm0.txt"); // save the action frame to "frm0.txt" in the root directory of SD card } void loop() {}
參考
- positions[]
- setPostions()
- load()
函式庫參考主頁面
86Duino 參考的文本是根據 知識共享署名-相同方式分享 3.0 許可證,部分文本是從 Arduino 參考 修改的。 參考中的代碼示例已發佈到公共領域。