0
如何以編程方式振動Myo。以編程方式振動Myo臂帶
我可以在TLMHubDidConnectDeviceNotification
中振動,但我可以在TLMMyoDidReceiveOrientationEventNotification
中使用它,因爲在此通知中沒有TLMMyo
的例子。
如:振動在TLMHubDidConnectDeviceNotification
TLMMyo *myo = notification.userInfo[kTLMKeyMyo];
[myo vibrateWithLength:TLMVibrationLengthLong];
[myo vibrateWithLength:TLMVibrationLengthMedium];
[myo vibrateWithLength:TLMVibrationLengthShort];
我也儘量節省instace在@property
但在TLMMyoDidReceiveOrientationEventNotification
這種情況下是nil
。
PS:Question in Myo Developer Forum