From e1bbdc4a7bf84213a6e79ab8700197b6ee027d14 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Wed, 27 May 2015 23:48:46 +0200 Subject: [PATCH] Some debug output --- photobooth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photobooth.py b/photobooth.py index 00416ef..16c1d13 100755 --- a/photobooth.py +++ b/photobooth.py @@ -10,7 +10,7 @@ from sys import exit from time import sleep import pygame -import RPi.GPIO as GPIO +#import RPi.GPIO as GPIO ##################### ### Configuration ### @@ -219,6 +219,7 @@ def handle_keypress(key): def handle_mousebutton(key, pos): """Implements the actions for the different mousebutton events""" + print("Key="+str(key)+", pos="+str(pos)) # Take a picture if key == 1: take_picture()