platypush/plugins/gpio/zeroborg/lib/__init__.py
def RawRead(self, command, length, retryCount=3):
        """
RawRead(command, length, [retryCount])

Reads data back from the ZeroBorg after sending a GET command
Command codes can be found at the top of ZeroBorg.py, length is the number of bytes to read back

The function checks that the first byte read back matches the requested command
If it does not it will retry the request until retryCount is exhausted (default is 3 times)

Under most circumstances you should use the appropriate function instead of RawRead
        """
        reply = []

        while retryCount > 0:
            self.RawWrite(command, [])
            rawReply = self.i2cRead.read(length)
            reply = []
            for singleByte in rawReply:
                reply.append(singleByte)
            if command == reply[0]:
                break
            else:
                retryCount -= 1
        if retryCount > 0:
            return reply
        else:
            raise IOError('I2C read for command %d failed' % command)

RawRead(command, length, [retryCount])

Reads data back from the ZeroBorg after sending a GET command
Command codes can be found at the top of ZeroBorg.py, length is the number of bytes to read back

The function checks that the first byte read back matches the requested command
If it does not it will retry the request until retryCount is exhausted (default is 3 times)

Under most circumstances you should use the appropriate function instead of RawRead
        
RawRead(command, length, [retryCount])
Reads data back from the ZeroBorg after sending a GET command
Command codes can be found at the top of ZeroBorg.py, length is the number of bytes to read back

The function checks that the first byte read back matches the requested command
If it does not it will retry the request until retryCount is exhausted (default is 3 times)

Under most circumstances you should use the appropriate function instead of RawRead
RawRead ( command length [ retryCount ] ) Reads data back from the ZeroBorg after sending a GET command Command codes can be found at the top of ZeroBorg . py length is the number of bytes to read back The function checks that the first byte read back matches the requested command If it does not it will retry the request until retryCount is exhausted ( default is 3 times ) Under most circumstances you should use the appropriate function instead of RawRead
def RawRead(self, command, length, retryCount=3):
        reply = []
        while retryCount > 0:
            self.RawWrite(command, [])
            rawReply = self.i2cRead.read(length)
            reply = []
            for singleByte in rawReply:
                reply.append(singleByte)
            if command == reply[0]:
                break
            else:
                retryCount -= 1
        if retryCount > 0:
            return reply
        else:
            raise IOError('I2C read for command %d failed' % command)
def RawRead ( self , command , length , retryCount = 3 ) : reply = [ ] while retryCount > 0 : self . RawWrite ( command , [ ] ) rawReply = self . i2cRead . read ( length ) reply = [ ] for singleByte in rawReply : reply . append ( singleByte ) if command == reply [ 0 ] : break else : retryCount -= 1 if retryCount > 0 : return reply else : raise IOError ( 'I2C read for command %d failed' % command )
RawRead(command, length, [retryCount])
Reads data back from the ZeroBorg after sending a GET command
Command codes can be found at the top of ZeroBorg.py, length is the number of bytes to read back
RawRead ( command length [ retryCount ] ) Reads data back from the ZeroBorg after sending a GET command Command codes can be found at the top of ZeroBorg . py length is the number of bytes to read back
"""
RawRead(command, length, [retryCount])

Reads data back from the ZeroBorg after sending a GET command
Command codes can be found at the top of ZeroBorg.py, length is the number of bytes to read back

The function checks that the first byte read back matches the requested command
If it does not it will retry the request until retryCount is exhausted (default is 3 times)

Under most circumstances you should use the appropriate function instead of RawRead
        """
self
command
length
retryCount