Configure 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 void ConfigureDigitalIoPin( byte iicAddress, DigitalIoPinConfiguration configuration ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub ConfigureDigitalIoPin ( _ iicAddress As Byte, _ configuration As DigitalIoPinConfiguration _ ) |
| Visual C++ |
|---|
public: static void ConfigureDigitalIoPin( unsigned char iicAddress, DigitalIoPinConfiguration^ configuration ) |
Parameters
- iicAddress
- Type: System..::.Byte
The address of the IIC module referenced by the packet.
- configuration
- Type: Bespoke.Robotics.BrainStem..::.DigitalIoPinConfiguration
The new configuration of the digital IO pin.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if configuration is null. |
| Bespoke.Robotics.BrainStem.Exceptions..::.CommandException | Thrown if there's an error processing the command. |