jobin-sun / raspberry-gpio-python

Automatically exported from code.google.com/p/raspberry-gpio-python
MIT License
0 stars 0 forks source link

rapberry freeze if set_high_event with pull_up_down=GPIO.PUD_UP #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
Run this code similar to the example:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.set_high_event(11)
if GPIO.event_detected(11):
    print('Highing edge detected!')
GPIO.set_high_event(11, enable=False)  # disable high detection (as set above)
GPIO.cleanup()

2. the machine freeze

What is the expected output? What do you see instead?

the execution do not freeze raspberry and I do not need to switch off power 
supply

What version of the product are you using? On what operating system?
updated rasbyan / fedora remix 
RPi.GPIO-0.4.2a

Please provide any additional information below.

if I change:
GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_UP)
to:
GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

all works well

Original issue reported on code.google.com by p.patr...@iperbole.bologna.it on 24 Feb 2013 at 10:19

GoogleCodeExporter commented 9 years ago

Original comment by btcros...@googlemail.com on 24 Feb 2013 at 11:11