[Servo86]
Description
Save the contents of the offsets[] array as a servo offset trim file that can be loaded by the ServoFrame.
Syntax
myoffset.save(filename)
Parameters
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.
Returns
- true: The file was saved successfully.
- false: File saving failed.
Example
#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
The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.