AnalogEnableInputsA Method

Enables analog inputs whose sources are Arduino pins A0, A1, A2, A3, A4, A5, A6 and A7. The default sample rate is 10Hz. A short delay may need to be implemented after a call to this method to allow analog values to start being received. Enable only the input sources that are needed. Digital inputs for the specified Arduino pins are disabled.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void EnableInputsA(
	params int[] inputPins
)

Parameters

inputPins  Int32
Any combination of pins from the set of {0,1,2,3,4,5,6,7}.

Exceptions

IOExceptionSerial port is in error state or not open.
ArgumentExceptioninputPins is null or not supplied.
ArgumentOutOfRangeExceptioninputPins contains out of range value.

See Also