コード例 #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
コード例 #2
0
def runSoda():
    pump.sodaValveOpen()
    pump.sodaRun(sodaTime)
    pump.sodaValveClose()
コード例 #3
0
def runSoda():
    pump.sodaValveOpen()
    pump.sodaRun(sodaTime)
    pump.sodaValveClose()
    messagebox.showinfo("Ation Completed", "Soda opened, run for {} secs, and closed".format(sodaTime))
コード例 #4
0
ファイル: FINALdemo.py プロジェクト: thabear/phil-bartender
def runSoda1():
    pump.sodaValveOpen()
    pump.sodaRun(sodaTime)
    pump.sodaValveClose()
    #messagebox.showinfo("Action Completed", "Drink Poured.")
    print("ran Soda")