示例#1
0
        public async void Bluetooth_ShowBackLed(int bright)
        {
            if (spheroSocket == null)
            {
                MessageBox.Show("Connect to Sphero first.");
                return;
            }

            byte[] package = new BackLedCommand(bright).ToPacket();
            await spheroSocket.OutputStream.WriteAsync(GetBufferFromByteArray(package));
        }
        public async void Bluetooth_ShowBackLed(int bright)
        {
            if (spheroSocket == null)
            {
                MessageBox.Show("Connect to Sphero first.");
                return;
            }

            byte[] package = new BackLedCommand(bright).ToPacket();
            await spheroSocket.OutputStream.WriteAsync(GetBufferFromByteArray(package));
        }