original_docstring: Reads a signed byte from the I2C device
docstring: Reads a signed byte from the I2C device
docstring_tokens: Reads a signed byte from the I2C device
code: def readS8(self, reg):
      "Reads a signed byte from the I2C device"
      try:
        result = self.bus.read_byte_data(self.address, reg)
        if result > 127: result -= 256
        if self.debug:
          print ("I2C: Device 0x%02X returned 0x%02X from reg 0x%02X" %
           (self.address, result & 0xFF, reg))
        return result
      except IOError, err:
        return self.errMsg()
code_tokens: def readS8 ( self , reg ) : try : result = self . bus . read_byte_data ( self . address , reg ) if result > 127 : result -= 256 if self . debug : print ( "I2C: Device 0x%02X returned 0x%02X from reg 0x%02X" % ( self . address , result & 0xFF , reg ) ) return result except IOError , err : return self . errMsg ( )
short_docstring: Reads a signed byte from the I2C device
short_docstring_tokens: Reads a signed byte from the I2C device
comment: "Reads a signed byte from the I2C device"