[Servo86]
説明
Save the contents of the offsets[] array as a servo offset trim file that can be loaded by the ServoFrame.
構文
myoffset.save(filename)
媒介変数
myoffset: The object of ServoOffsetVstone type.filename: The specified file name. 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>
ServoOffsetVstone myoffset;
void setup()
{
myoffset.offsets[0] = -200; // Set the servo offset fine-tuning value
myoffset.offsets[1] = 50;
myoffset.offsets[2] = -100;
myoffset.save("offsets.txt"); // save the offset fine-tuning value to "offsets.txt" in the root directory of SD card
}
void loop() {}参照
ライブラリリファレンスホーム
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。