public async Task <AnalogIO> CreateAnalogIOAsync(SocketPinNumber pinNumber) { this.EnsureTypeIsSupported(SocketType.A); AnalogIO result; if (this.AnalogIOCreator != null) { result = await this.AnalogIOCreator(this, pinNumber); } else { result = new NativeInterfaces.AnalogIO(); } result.DriveMode = WD.Gpio.GpioPinDriveMode.Input; return(result); }
public async Task<AnalogIO> CreateAnalogIOAsync(SocketPinNumber pinNumber) { this.EnsureTypeIsSupported(SocketType.A); AnalogIO result; if (this.AnalogIOCreator != null) { result = await this.AnalogIOCreator(this, pinNumber); } else { result = new NativeInterfaces.AnalogIO(); } result.DriveMode = WD.Gpio.GpioPinDriveMode.Input; return result; }