/// <summary> /// Connect the pozyx via I2C and reset it. /// </summary> /// <returns></returns> private async Task StartUp() { Button1.IsEnabled = false; Button2.IsEnabled = false; Button3.IsEnabled = false; Button4.IsEnabled = false; Button5.IsEnabled = false; ResetButton.IsEnabled = false; await _Pozyx.ConnectI2c(); //_Pozyx.RegisterFunctions.ResetSys(_FriendId); //await Task.Delay(200); //_Pozyx.RegisterFunctions.ResetSys(); //await (Task.Delay(1000)); //_Pozyx.RegisterFunctions.FlashReset(); //await (Task.Delay(1000)); Button1.IsEnabled = true; Button2.IsEnabled = true; Button3.IsEnabled = true; Button4.IsEnabled = true; Button5.IsEnabled = true; ResetButton.IsEnabled = true; }