- added max31865

This commit is contained in:
jens
2020-12-13 19:18:50 +01:00
parent 2327b214fc
commit a74e1b573b
2 changed files with 125 additions and 0 deletions
+3
View File
@@ -1,4 +1,5 @@
from components.sensor.tempSensorSim import TempSensorSim
from components.sensor.tempSensor_max31865 import TempSensor_max31865
class TempSensorFactory:
@@ -6,3 +7,5 @@ class TempSensorFactory:
def create(name):
if "sim" in name:
return TempSensorSim()
elif "31865" in name:
return TempSensor_max31865()