|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 read one of its digital inputs. This need not be the router.|
|nDigitalIndex||-||The index of the digital input.|
|pDigitalValue||-||Address of integer where the result will be stored.|
This routine manages the BrainStem packets needed to request a digital reading and receive the reply. The result is a 0 or 1. The digital IO pin must be configured as an input prior to taking a reading.