]> git.parisson.com Git - piplayer.git/commitdiff
RISING instead of PUD_DOWN
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 24 Oct 2013 16:37:24 +0000 (18:37 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 24 Oct 2013 16:37:24 +0000 (18:37 +0200)
piplayer/controller.py

index 8a3f4224bb8706b63cb768a726c5f19f22452041..bb5edc59f8bc500fc88193338b12d576c5e28150 100644 (file)
@@ -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)