01 #!/usr/bin/env python 02 import pibrella, os 03 from time import sleep 04 pibrella.light.green.on() 05 while True: 06  if pibrella.button.read() == 1: 07  pibrella.light.green.off() 08  pibrella.light.red.blink(1, 1) 09  sleep(5) 10  os.system("halt")