- added stirrer and hendi

- refactored
This commit is contained in:
jens
2020-12-16 16:52:32 +01:00
parent b216498c5b
commit 0cb958938f
11 changed files with 80 additions and 18 deletions
+11
View File
@@ -0,0 +1,11 @@
class HeaterFactory:
@staticmethod
def create(name):
if "sim" in name:
from components.actor.heater_sim import HeaterSim
return HeaterSim()
elif "Hendi" in name:
from components.actor.heater_hendi import HeaterHendi
return HeaterHendi('/dev/ttyUSB0', 115200)