示例#1
0
        /// <inheritdoc />
        public void Vibrate(VibrationType type)
        {
            var command = MyoCommand.Create(
                _myoErrorHandlerDriver,
                () =>
            {
                IntPtr errorHandle;
                var result = PlatformInvocation.Running32Bit
                        ? _myoDeviceBridge.Vibrate32(_handle, type, out errorHandle)
                        : _myoDeviceBridge.Vibrate64(_handle, type, out errorHandle);

                return(MyoCommandResult.Create(
                           result,
                           errorHandle));
            });

            command.Execute();
        }