예제 #1
0
 def __init__(self):
     self.mashtun = devices.JamMaker(0, 27, self.mash_temp_reached)
     self.boiler = devices.JamMaker(1, 22, self.boil_temp_reached)
     self.mashpump = gpiozero.LED(2)
     self.temppump = gpiozero.LED(3)
     self.boilpump = gpiozero.LED(4)
     self.mashvalve = devices.TwoWayValve(14, 15, "mash", "temp", 2)
     self.boilvalve = devices.TwoWayValve(17, 18, "mash", "boil", 2)
     testrecipe = recipes.Recipe(mash_stages=[(50, 1), (64, 1), (68, 1),
                                              (74, 1)],
                                 boiling_time=1,
                                 mash_water=1,
                                 sparge_water=1)
     self.process = process.BrewProcess(testrecipe, self)
     threading.Timer(5, self.print_status).start()
예제 #2
0
def drawRecipe(canvas, potionName):
    recipe = recipes.Recipe(canvas, potionName)
    recipe.displayRecipe()
    canvas.recipe = recipe  # store instance of recipe class in canvas
예제 #3
0
def drawRecipe(canvas, potionName):
    recipe = recipes.Recipe(canvas, potionName)
    recipe.displayRecipe()