From df06cb254e793d3a2c23d4bfb2b2f97614fdba99 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Sun, 28 Jun 2015 17:41:35 +0200 Subject: [PATCH] Lamp disabled on exit --- photobooth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photobooth.py b/photobooth.py index be31a73..89ced20 100755 --- a/photobooth.py +++ b/photobooth.py @@ -23,7 +23,7 @@ display_size = (1024, 600) # Maximum size of assembled image image_size = (2352, 1568) - +# Size of pictures in the assembled image thumb_size = (1176, 784) # Image basename @@ -106,6 +106,7 @@ class Photobooth: self.display.clear() self.display.show_message("Shutting down...") self.display.apply() + self.gpio.set_output(self.lamp_channel, 0) sleep(0.5) self.display.teardown() self.gpio.teardown()