From: Guillaume Pellerin Date: Thu, 24 Oct 2013 16:37:24 +0000 (+0200) Subject: RISING instead of PUD_DOWN X-Git-Tag: 0.3.1~2^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=92231bb921827862d47431e949f305ca75c49f30;p=piplayer.git RISING instead of PUD_DOWN --- diff --git a/piplayer/controller.py b/piplayer/controller.py index 8a3f422..bb5edc5 100644 --- a/piplayer/controller.py +++ b/piplayer/controller.py @@ -48,7 +48,7 @@ class GPIOController(Thread): import RPi.GPIO as GPIO self.server = GPIO self.server.setmode(self.server.BCM) - self.method = self.server.PUD_DOWN + self.method = self.server.RISING def add_channel_callback(self, channel, callback, bouncetime): self.server.setup(channel, self.server.IN, pull_up_down=self.method)