[Servo86]
Description
Saves the contents of the positions[] array as an action frame file that can be loaded by the ServoFrame.
Syntax
myframe.save(filename)
Parameters
myframe: the object of ServoFrameKondo type.filename: the name of the action frame file. 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>
ServoFrameKondo myframe;
void setup()
{
myframe.positions[0] = 1800; // set the frame content
myframe.positions[1] = 1300;
myframe.positions[2] = 2000;
myframe.save("frm0.txt"); // save the motion frame to "frm0.txt" in the root directory of the SD card
}
void loop() {}See also
- positions[]
- load()
- setPostions()
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.