fixed minutes to seconds
This commit is contained in:
parent
5ece4bb381
commit
8d49e8e778
1 changed files with 3 additions and 3 deletions
|
|
@ -18,9 +18,9 @@ pump = DigitalInOut(board.D4) # Pin to control the pump
|
||||||
pump.direction = Direction.OUTPUT
|
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:
|
while True:
|
||||||
# we could also just do "led.value = not button.value" !
|
# we could also just do "led.value = not button.value" !
|
||||||
|
|
@ -33,7 +33,7 @@ while True:
|
||||||
print('pressed')
|
print('pressed')
|
||||||
led.value = True # turn ON LED
|
led.value = True # turn ON LED
|
||||||
chiller.value = True # turn ON chiller
|
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
|
chiller.value = False # turn OFF chiller
|
||||||
pump.value = True # turn ON pump
|
pump.value = True # turn ON pump
|
||||||
time.sleep(pumpTime) # wait pump time
|
time.sleep(pumpTime) # wait pump time
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue