Method SetGpioOut
- Namespace
- Dgi_VisionarySolutionsSeries4Driver
- Assembly
- DGI.Framework.Transport.VisionarySolutions.Series4Driver.dll
SetGpioOut(uint, bool)
Sets GPIO Out State
public Task<bool> SetGpioOut(uint number, bool state)
Parameters
numberuintGPIO Number To Set.
stateboolGPIO State. True it will send 5V. False it will short to ground
Returns
- Task<bool>
True if command was sent successfully
Examples
To set GPIO 1 to output 5V:
var result = await vsDriver.SetGpioOut(1, true);
Remarks
GPIO.ENABLED must be checked in the Web Configuration. If IR.ENABLED is checked, GPIO Out 2 is disabled. When set to low, it can sink up to 50mA and 24 VDC.