AIServoFrameRobotis.save()

[AIServo86]

Description

Save the current Frame to the specified file.

Syntax

aiservoframerobotis.save(filename)

Parameters

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

Returns

  • true: File saving successfully.
  • false: File saving failed.

Example

#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" 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.

Leave a Comment

Scroll to Top