private void MainPage_Unloaded(object sender, object args) { // Cleanup I2CGYR.Dispose(); I2CACC.Dispose(); }