Created
March 27, 2013 11:16
-
-
Save rasathus/5253461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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