[Servo86]
説明
Initialize the ServoFrameInno category.
ServoFrameInno is inherited from the ServoFrame category and can load robotic frames created with the Innovati action editor.
Syntax
ServoFrameInno myframe
ServoFrameInno myframe(filename)
Parameters
filename
: the name of the action frame file saved by Innovati Action Editor.
If the above filename parameter is entered, ServoFrameInno will automatically load the file as the initial frame when the class is initialized. Note that you must place the file in the root directory of the SD card; if your 86Duino is not placed on the SD card, or if the SD card does not contain the action frame file, the file loading will fail.
Example
#include <Servo86.h> Servo myservo0; Servo myservo1; Servo myservo2; // Load Frame0.ftxt motion frame file from SD card ServoFrameInno myframe("Frame0.ftxt"); void setup() { myservo0.attach(21); myservo1.attach(23); myservo2.attach(25); myframe.playPositions(myservo0, myservo1, myservo2); // play action frames } void loop() {}
See also
- load()
- setPositions()
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。