save()

Description

Saves the current frame to the specified file.

Syntax

aiservoframerobotis.save(filename)

Parameters

aiservoframerobotis: Variable of type AIServoFrameRobotis.

filename: 86Duino Frame file name. Please note that files can only be saved to the root directory of an SD card. If your 86Duino does not have an SD card, saving will fail.

Return

true: The file was saved successfully.

false: The file was not saved.

Example

1

2

3

4

5

6

7

8

9

10

11

12

13

#include <AIServo86.h>

 

AIServoFrameRobotis myframe;

  

void setup()

{

  myframe.positions[0] = 180; //Set Frame content

  myframe.positions[1] = 130;

  myframe.positions[2] = 200;

  myframe.save("frm0.txt"); // Save the action frame to "frm0.txt"

}

  

void loop() {}

See also

– positions[]
– setPostions()
– load()


Library 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.