[Servo86]
説明
Load the .oxt servo offset trim file created by the Innovati Action Editor.
構文
myoffset.load(filename)
媒介変数
myoffset
: the object of ServoOffsetInno type.filename
: The name of the .oxt servo offset trim file saved by the Innovati Action Editor. Note: This function will only look for the specified file under the root directory of the SD card. If your 86Duino does not have an SD card inserted, 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 myservo0; Servo myservo1; Servo myservo2; ServoOffsetInno myoffset; void setup() { myservo0.attach(9); myservo1.attach(11); myservo2.attach(5); myoffset.load("Inno_offset.otxt"); // load the fine-tuning value from the .otxt file myoffset.setOffsets(myservo0, myservo1, myservo2); // Set the offset fine-tuning value of each servo } void loop() {}
See also
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。