Improved temp offset
This commit is contained in:
@@ -15,7 +15,7 @@ class TempSensor_max31865(ATemperatureSensor):
|
||||
self.spi.open(0, 0)
|
||||
self.spi.max_speed_hz = 50000
|
||||
self.spi.mode = 0b01
|
||||
self.temp_correction = -1.0
|
||||
self.temp_correction = -1.2
|
||||
self.write_reg(0x00, 0xA3)
|
||||
time.sleep(0.100)
|
||||
self.digits = 0
|
||||
@@ -53,7 +53,7 @@ class TempSensor_max31865(ATemperatureSensor):
|
||||
|
||||
@staticmethod
|
||||
def calc_R(Rref, digits):
|
||||
k = digits / 8192 / 4
|
||||
k = digits / 32768
|
||||
R = k*Rref
|
||||
|
||||
return R
|
||||
|
||||
Reference in New Issue
Block a user