From f15ce5aaa673bb40e36c4dae585ac8874add2ec8 Mon Sep 17 00:00:00 2001 From: 9and3r <9and3r@gmail.com> Date: Fri, 8 Aug 2014 11:54:39 +0200 Subject: [PATCH] GPIO --- mopidy_touchscreen/gpio_inpput_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mopidy_touchscreen/gpio_inpput_manager.py b/mopidy_touchscreen/gpio_inpput_manager.py index 798ef04..31808bf 100644 --- a/mopidy_touchscreen/gpio_inpput_manager.py +++ b/mopidy_touchscreen/gpio_inpput_manager.py @@ -9,8 +9,8 @@ class GPIOManager(): def __init__(self): GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) - GPIO.add_event_detect(23, GPIO.RISING, callback=self.printFunction, bouncetime=300) + GPIO.add_event_detect(23, GPIO.RISING, callback=printFunction, bouncetime=300) - def printFunction(self): - logger.error("Sakatu da") +def printFunction(): + logger.error("Sakatu da")