src/software/picoreflow/lib/hotpi.py
def read(self):
        '''Samples the thermocouple and reads the scratchpad to store the result in self.scratchpad.'''
        result = self.lib.max31850SampleThermocouple()
        if (result != 0):
            raise HotPiError("Unable to sample thermocouple; result=0x{0:8x}, errno={1}".format(result & 0xffffffff, get_errno()))

        result = self.lib.max31850ReadScratchpad(byref(self.scratchpad))
        if (result != 0):
            raise HotPiError("Unable to read MAX31850 scratchpad; result=0x{0:8x}, errno={1}".format(result & 0xffffffff, get_errno()))
Samples the thermocouple and reads the scratchpad to store the result in self.scratchpad.
Samples the thermocouple and reads the scratchpad to store the result in self.scratchpad.
Samples the thermocouple and reads the scratchpad to store the result in self . scratchpad .
def read(self):
        result = self.lib.max31850SampleThermocouple()
        if (result != 0):
            raise HotPiError("Unable to sample thermocouple; result=0x{0:8x}, errno={1}".format(result & 0xffffffff, get_errno()))
        result = self.lib.max31850ReadScratchpad(byref(self.scratchpad))
        if (result != 0):
            raise HotPiError("Unable to read MAX31850 scratchpad; result=0x{0:8x}, errno={1}".format(result & 0xffffffff, get_errno()))
def read ( self ) : result = self . lib . max31850SampleThermocouple ( ) if ( result != 0 ) : raise HotPiError ( "Unable to sample thermocouple; result=0x{0:8x}, errno={1}" . format ( result & 0xffffffff , get_errno ( ) ) ) result = self . lib . max31850ReadScratchpad ( byref ( self . scratchpad ) ) if ( result != 0 ) : raise HotPiError ( "Unable to read MAX31850 scratchpad; result=0x{0:8x}, errno={1}" . format ( result & 0xffffffff , get_errno ( ) ) )
Samples the thermocouple and reads the scratchpad to store the result in self.scratchpad.
Samples the thermocouple and reads the scratchpad to store the result in self . scratchpad .
'''Samples the thermocouple and reads the scratchpad to store the result in self.scratchpad.'''
self