Inheritance: IDisposable
Esempio n. 1
0
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
            // 画質が落ちるのを防ぐ措置
            var bitmapSignal = ImageSignal.Source as BitmapImage;

            bitmapSignal.DecodePixelWidth  = 477;
            bitmapSignal.DecodePixelHeight = 164;

            var dis = await ArduinoDevice.GetDeviceInformationsFromUsbVidPidAsync(ArduinoDevice.INTERFACE_ARDUINO_UNO_R3TAKE);

            if (dis.Count <= 0)
            {
                return;
            }

            _Arduino = await ArduinoDevice.FromIdAsync(dis[0].Id);

            StoryboardAntena.Begin();
        }