Skip to content

Instantly share code, notes, and snippets.

@rasathus
Created March 27, 2013 11:16
Show Gist options
  • Save rasathus/5253461 to your computer and use it in GitHub Desktop.
Save rasathus/5253461 to your computer and use it in GitHub Desktop.
if controlmypi_connection.start_control():
capture_service.say_cheese()
try:
while True:
logging.info("Queue length is : %d" % snap_queue.qsize())
rgb = snap_queue.get(block=True)
led_setter.set(rgb)
capture_service.say_cheese()
capture_service.spring_cleaning()
except KeyboardInterrupt:
logging.warning("Caught keyboard interupt. Shutting down ...")
logging.info("Calling shutdown on ControlMyPi.com")
controlmypi_connection.stop_control()
logging.info("Calling shutdown on capture service")
capture_service.shutdown()
logging.info("Calling shutdown on led chain")
led_setter.shutdown()
logging.info("Calling shutdown on scheduler")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment