[Servo86]
説明
Load the action frame specified in the .rcb action file of HTH3 (HeartToHeart 3).
Syntax
myframe.load(filename, frame_name)
Parameters
myframe
: the object of ServoFrameKondo type.filename
: The name of the .rcb action file saved by HTH3. Note: This function will only look for action files under the root directory of the SD card. If your 86Duino is not inserted into the SD card, or if there is no specified file on the SD card, loading will fail.frame_name
: The name of the action frame (can be found in HTH3).
Returns
- true: The file was loaded successfully.
- false: File loading failed.
Example
#include <Servo86.h> Servo myservo1; Servo myservo2; Servo myservo3; ServoFrameKondo myframe; void setup() { myservo1.attach(9); myservo2.attach(11); myservo3.attach(5); // Load "Frame0" in kondo.rcb action file myframe.load("kondo.rcb", "Frame0"); myframe.playPositions(myservo1, myservo2, myservo3); // play action frames } void loop() {}
See also
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。