/// <summary>
        /// Removes pin registration
        /// </summary>
        /// <param name="pin">GPIO pin object</param>
        /// <returns>'true' if unregistering success</returns>
        public bool UnRegisterPin(GpioPin pin)
        {
            if (pin == null)
            {
                return(false);
            }

            pin.Free();
            return(Pins.Remove(pin));
        }