Пример #1
0
 private void RefreshButton_Click(object sender, EventArgs e)
 {
     if (ArduinoInterface.retryConnection())
     {
         RefreshButton.Visible = false;
         ConnectionLabel.Text  = ArduinoInterface.DeviceInfo.Item1;
         ArduinoInterface.BeginSerial();
     }
 }
Пример #2
0
        public UI()
        {
            InitializeComponent();
            setupCustomFont();
            SpotifyLoad spotify = new SpotifyLoad();

            spotify.OnAudioChange += trackChanged;

            ArduinoInterface arduinoInterface = new ArduinoInterface();
            AudioPassthrough ap = new AudioPassthrough();

            if (arduinoInterface.hasError)
            {
                RefreshButton.Visible = true;
            }
            else
            {
                ArduinoInterface.BeginSerial();
                ConnectionLabel.Text = ArduinoInterface.DeviceInfo.Item1;
            }
        }