You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have an issue I want to use a python script to setup three pins for interrupt input but seem to fail already in the beginning. Also just out of curiosity is there no possibility to have the debounce parameter?
Type"help", "copyright", "credits"or"license"formoreinformation.
>>>importwiringpi>>>PIN_TO_SENSE=5>>>defgpio_callback():
... print("GPIO_CALLBACK!")
...
>>>wiringpi.wiringPiSetupGpio()
0>>>wiringpi.pinMode(PIN_TO_SENSE, wiringpi.GPIO.INPUT)
Pinmodefailed!
### And if I use wiringPiSetup without Gpio suffix then I cant create the interrupt service routine.>>>wiringpi.wiringPiSetup()
0>>>wiringpi.pinMode(5,GPIO.INPUT)
>>>wiringpi.pullUpDnControl(5,GPIO.PUD_UP)
>>>defgpio_callback():
... print("GPIO_CALLBACK!")
...
>>>wiringpi.wiringPiISR(5, GPIO.INT_EDGE_FALLING, gpio_callback)
wiringPiISR: unabletoopen/sys/class/gpio/gpio36/value: Nosuchfileordirectory### Currently installed versionHelponmodulewiringpi:
NAMEwiringpiDESCRIPTION# This file was automatically generated by SWIG (http://www.swig.org).# Version 4.0.2## Do not make changes to this file unless you know what you are doing--modify# the SWIG interface file instead.
The text was updated successfully, but these errors were encountered:
By the way I have just stumbled upon the documentation where it says SetupGpio means we have to use the GPIO column for pin values and now I dont get pin mode failed :) in my case wpi 5 is gpio 36 and it works but it didnt work for higher than 63 values??
Hi, I have an issue I want to use a python script to setup three pins for interrupt input but seem to fail already in the beginning. Also just out of curiosity is there no possibility to have the debounce parameter?
The text was updated successfully, but these errors were encountered: