def quit(self):
""" Cleanup function """
log.debug("Quitting")
log.debug("Cleaning the photobooth")
self.queue.put("exit")
self.camera.close()
self.lamp.set_level(0)
self.count_display.switch_off()
GPIO.output(self.trigger_led_channel, 0)
GPIO.output(self.shutdown_led_channel, 0)
GPIO.cleanup()
sys.exit()
#################
### Functions ###
#################
评论列表
文章目录