Exemplo n.º 1
0
import pump
from time import sleep

# run for 30 seconds to pour a shot?
pump.liquor1Run(30)
pump.liquor2Run(30)

# run soda pump for 5 seconds to pour just shy of a glass?
pump.sodaValveOpen()
pump.sodaRun(5)
pump.sodaValveClose()

sleep(5)

# test results
Exemplo n.º 2
0
def runSoda():
    pump.sodaValveOpen()
    pump.sodaRun(sodaTime)
    pump.sodaValveClose()
Exemplo n.º 3
0
def runSoda():
    pump.sodaValveOpen()
    pump.sodaRun(sodaTime)
    pump.sodaValveClose()
    messagebox.showinfo("Ation Completed", "Soda opened, run for {} secs, and closed".format(sodaTime))
Exemplo n.º 4
0
def runSoda1():
    pump.sodaValveOpen()
    pump.sodaRun(sodaTime)
    pump.sodaValveClose()
    #messagebox.showinfo("Action Completed", "Drink Poured.")
    print("ran Soda")