fixed minutes to seconds

This commit is contained in:
John Edgar Park 2017-11-02 17:07:39 -07:00
parent 5ece4bb381
commit 8d49e8e778

View file

@ -18,9 +18,9 @@ pump = DigitalInOut(board.D4) # Pin to control the pump
pump.direction = Direction.OUTPUT
chillTime = 5 # How many _minutes_ of cooling
chillTime = 1 # How many _minutes_ of cooling
pumpTime = 15 # How many seconds of pumping
pumpTime = 35 # How many seconds of pumping
while True:
# we could also just do "led.value = not button.value" !
@ -33,7 +33,7 @@ while True:
print('pressed')
led.value = True # turn ON LED
chiller.value = True # turn ON chiller
time.sleep(chillTime / 60) # wait chiller time (in seconds)
time.sleep(chillTime * 60) # wait chiller time (in seconds)
chiller.value = False # turn OFF chiller
pump.value = True # turn ON pump
time.sleep(pumpTime) # wait pump time