Read an input bit from a digital IO pin.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public static bool ReadDigitalInput(
	byte iicAddress,
	DigitalIoPinType digitalIoPin,
	bool sendReplyToHost,
	bool sendReplyToReflex
)
Visual Basic (Declaration)
Public Shared Function ReadDigitalInput ( _
	iicAddress As Byte, _
	digitalIoPin As DigitalIoPinType, _
	sendReplyToHost As Boolean, _
	sendReplyToReflex As Boolean _
) As Boolean
Visual C++
public:
static bool ReadDigitalInput(
	unsigned char iicAddress, 
	DigitalIoPinType digitalIoPin, 
	bool sendReplyToHost, 
	bool sendReplyToReflex
)

Parameters

iicAddress
Type: System..::.Byte
The address of the IIC module referenced by the packet.
digitalIoPin
Type: Bespoke.Robotics.BrainStem..::.DigitalIoPinType
The digital IO pin to read the input from.
sendReplyToHost
Type: System..::.Boolean
The BrainStem will send a reply packet to the host.
sendReplyToReflex
Type: System..::.Boolean
The value will go directly to a reflex routine within the BrainStem.

Return Value

The input from the specified digital IO pin.

Exceptions

ExceptionCondition
Bespoke.Robotics.BrainStem.Exceptions..::.CommandExceptionThrown if there's an error processing the command.

See Also