Exemplo n.º 1
0
        /// <summary>
        /// Gets the current value of the ADC pin.
        /// </summary>
        public uint ReadValue()
        {
            var ret = NativeAdc.Read(_handle, out uint adcValue);

            if (ret != Internals.Errors.ErrorCode.None)
            {
                throw ExceptionFactory.CreateException(ret);
            }
            return(adcValue);
        }