[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 ServoOffsetInno 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> ServoOffsetInno 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() {}
See also
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。