Read an input bit from a digital IO pin.
Namespace:
Bespoke.Robotics.BrainStemAssembly: 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
Exception | Condition |
---|---|
Bespoke.Robotics.BrainStem.Exceptions..::.CommandException | Thrown if there's an error processing the command. |