projects
/
pi-music.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51ec39d
)
Formatting
release
author
Pi user
<pi@njae.me.uk>
Thu, 24 Oct 2013 14:42:45 +0000
(15:42 +0100)
committer
Pi user
<pi@njae.me.uk>
Thu, 24 Oct 2013 14:42:45 +0000
(15:42 +0100)
keyboard.py
patch
|
blob
|
history
diff --git
a/keyboard.py
b/keyboard.py
index 237d7c668b98533ffdf02ad1cc91b15be018a5b0..5f38e90fba149918148df29e0ecfb82b6ea3c00f 100644
(file)
--- a/
keyboard.py
+++ b/
keyboard.py
@@
-30,7
+30,8
@@
def handle_sound(pin):
for pin in pins:
gpio.setup(pin, gpio.IN)
- gpio.add_event_detect(pin, gpio.BOTH, callback=handle_sound, bouncetime=50)
+ gpio.add_event_detect(pin, gpio.BOTH, callback=handle_sound,
+ bouncetime=50)
while True:
pass