[Servo86]
Description
Save the contents of the positions[] array to the specified action frame file.
Syntax
myframe.save(filename)
Parameters
myframe
: the object of ServoFrame 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> ServoFrame myframe; void setup() { myframe.positions[0] = 1800; // set the action frame content myframe.positions[1] = 1300; myframe.positions[2] = 2000; myframe.save("frm0.txt"); // save the motion frame as "frm0.txt" in the root directory of the 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.