- 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 StirrerFactory:
@staticmethod
def create(name, dt):
if "sim" in name:
from components.actor.stirrer_sim import Stirrer_sim
return Stirrer_sim(dt)
elif "1376" in name:
from components.actor.stirrer_pololu1376 import Stirrer_pololu1376
return Stirrer_pololu1376(dt, '/dev/ttyUSB0', 115200)