public static void UnlockWall() { if (Device == null) { return; } if (!isVersionV3) { Device.OpenDoor(); } else { if (GpioCardObject != null) { if (GpioCardObject.IsConnected) { GpioCardObject.SetOut(1); Thread.Sleep(500); GpioCardObject.ClearOut(1); } } } }