ServoFrame builder

[Servo86]

Description

Initializes the ServoFrame class.

Syntax

ServoFrame myframe
ServoFrame myframe(filename)

Parameters

filename: The name of the action frame file. If you enter a filename, ServoFrame will automatically load the content of the file as the initial action frame when initializing the category. Please note that you must put the action frame file in the root directory of the SD card; if your 86Duino is not placed in the SD card, or the SD card does not contain the action frame file, then the file loading will fail.

Example

#include <Servo86.h>
 
Servo myservo1;
Servo myservo2;
Servo myservo3;
ServoFrame myframe("frame.txt"); // Load motion frame with file name frame.txt from SD card
 
void setup()
{
   myservo1.attach(21);
   myservo2.attach(23);
   myservo3.attach(25);
 
   myframe.setPositions();
   servoMultiRun();
}
 
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