src/software/picoreflow/lib/hotpi.py
def data_to_tc_temperature(self):
        '''Returns the thermocouple temperature in celsius.'''
        if (self.valid_scratchpad == None):
            return 0

        fixed_point = (self.valid_scratchpad.buffer[1] << 24) | ((self.valid_scratchpad.buffer[0] & 0xfc) << 16)
        return float(fixed_point) / (1 << 20)
Returns the thermocouple temperature in celsius.
Returns the thermocouple temperature in celsius.
Returns the thermocouple temperature in celsius .
def data_to_tc_temperature(self):
        if (self.valid_scratchpad == None):
            return 0
        fixed_point = (self.valid_scratchpad.buffer[1] << 24) | ((self.valid_scratchpad.buffer[0] & 0xfc) << 16)
        return float(fixed_point) / (1 << 20)
def data_to_tc_temperature ( self ) : if ( self . valid_scratchpad == None ) : return 0 fixed_point = ( self . valid_scratchpad . buffer [ 1 ] << 24 ) | ( ( self . valid_scratchpad . buffer [ 0 ] & 0xfc ) << 16 ) return float ( fixed_point ) / ( 1 << 20 )
Returns the thermocouple temperature in celsius.
Returns the thermocouple temperature in celsius .
'''Returns the thermocouple temperature in celsius.'''
self