| aDigital_WriteInt | Index |
Definition:
| aErr aDigital_WriteInt( | aStemLib stemRef, const unsigned char module, const unsigned char nDigitalIndex, int nDigitalValue); |
Parameters:
| stemRef | - | An opaque library reference representing the aStem library which manages the communication with the BrainStem modules. |
| module | - | The IIC address of the module that will receive a new output state for one of its digital IO pins. This need not be the router. |
| nDigitalIndex | - | The index of the digital IO pin. |
| nDigitalValue | - | Integer with the new output value. |
Return Value:
Description:
This routine manages the BrainStem packets needed to set the output state of a digital IO pin. The new output state can be 0 or non-zero. A 0 turns the output off. A non-zero value turns it on. The digital IO pin must be configured as an output prior to writing the new state.
Related: