我怎样才能以编程方式振动 Myo。
我可以在 中振动TLMHubDidConnectDeviceNotification
,但我可以在 中使用它,TLMMyoDidReceiveOrientationEventNotification
因为在此通知中 a 没有TLMMyo
.
例如:振动TLMHubDidConnectDeviceNotification
TLMMyo *myo = notification.userInfo[kTLMKeyMyo];
[myo vibrateWithLength:TLMVibrationLengthLong];
[myo vibrateWithLength:TLMVibrationLengthMedium];
[myo vibrateWithLength:TLMVibrationLengthShort];
我也尝试将实例保存在 a@property
但在TLMMyoDidReceiveOrientationEventNotification
这种情况下是nil
.
PS:Myo开发者论坛中的问题