wiringPiISR segmentation fault
Bonjour
Je tente de detecter un signal sinusoidale sur la pin 17 de mon raspberry (avec une raspbian).
Avec le code suivant lancé depuis une invite python en root :
Code:
1 2 3 4 5 6 7 8 9 10
| import wiringpi,time
pinCounter = 17
wiringpi.wiringPiSetupGpio()
wiringpi.pinMode(pinCounter, wiringpi.INPUT)
def countImpulse():
print "top"
time.sleep(1)
wiringpi.wiringPiISR(pinCounter, wiringpi.INT_EDGE_RISING,countImpulse) |
mais quand le signal sinusoidale arrive sur la Pin 17 je récupère un segmentation fault (depuis la fenêtre ou j'ai demaré python en sudo)
Une idee du pb ?
Merci