コード例 #1
0
        public static void LockWall()
        {
            if (Device == null)
            {
                return;
            }

            if (!isVersionV3)
            {
                Device.CloseDoor();
            }
            else
            {
                if (GpioCardObject != null)
                {
                    if (GpioCardObject.IsConnected)
                    {
                        GpioCardObject.SetOut(2);
                        Thread.Sleep(500);
                        GpioCardObject.ClearOut(2);
                    }
                }
            }
        }