01 #!/usr/bin/env python 02 from time import sleep 03 import pibrella 04 time_min = raw_input("Enter time in minutes (must be >1): ") 05 time_sec = int(time_min)*60 06 pibrella.light.red.on() 07 sleep(time_sec-60) 08 pibrella.light.red.off() 09 pibrella.light.amber.fade(100, 0, 60) 10 sleep(60) 11 pibrella.light.green.pulse(1, 1, 1, 1) 12 sleep(15)