サイト内検索

検索

Shares

Table of Content

ServoFrameVstone Builder

[Servo86]

説明

Initialize the ServoFrameVstone category.

ServoFrameVstone is inherited from the ServoFrame category and can load robotic frames made with the RobovieMaker2 action editor.

構文

ServoFrameVstone myframe
ServoFrameVstone myframe(filename, frame_name)

媒介変数

  • filename: The name of the .txt action file saved by RobovieMaker2.
  • frame_name: The name of the action frame (available in RobovieMaker2).

If the above two parameters are entered, ServoFrameVstone will automatically load the specified action frame in the file as the initial action 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 file, the file loading will fail.

#include <Servo86.h>
 
Servo myservo0;
Servo myservo1;
Servo myservo2;
 
// Load "Frame 0" in vstone_motion.txt motion file from SD card
ServoFrameVstone myframe("vstone_motion.txt", "Frame 0");
 
void setup()
{
   myservo0.attach(21);
   myservo1.attach(23);
   myservo2.attach(25);
   myframe.playPositions(myservo0, myservo1, myservo2); // play action frames
}
 
void loop() {}

See also


Libraries Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

上部へスクロール