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
I'm struggling with the function
gpioSetISRFunc
I always have a bad init error -123
I tried to find some solution by disabling the W-1 interface but it does not work
This is my config.txt
I need this function because I have 2 different square signals on my PIN BCM 17 and 27 that represent the speed of 2 different rotors
I want that each time a RISING_EDGE is occuring it computes the times between the last and the current rising_edge
I tried to do
sudo -s
cd /sys/class/gpio/
echo 17 > export
cd gpio17
echo in > direction
echo both > edge
cd /sys/class/gpio/
echo 17 > unexport
Having the same issue :'( My Pi is on Debian 12, more or less freshly installed and 1-wire is definitely not enabled
Hello,
I found the function
gpioSetAlertFunc( gpio_pin , interrupt_function); in the library pigpio
It is exacly the same, but it detects every change of state of your gpio.
However, in your interrupt function, you have access the an int named "Level" which is describing if it is a rising_edge or a
falling_edge
so you do the following code:
void interrupt_function (int gpio, int level, uint23 tick){
if (level==1){
Code_of_your_previous_interrupt_function;
}
config.txt
Hello
I'm struggling with the function
gpioSetISRFunc
I always have a bad init error -123
I tried to find some solution by disabling the W-1 interface but it does not work
This is my config.txt
I need this function because I have 2 different square signals on my PIN BCM 17 and 27 that represent the speed of 2 different rotors
I want that each time a RISING_EDGE is occuring it computes the times between the last and the current rising_edge
I tried to do
as mentionned here #97 #97
but sadly after the line
I have an invalid argument error
My code is something like this :
It fails at the first gpioSetISRFunc
Thanks in advance
Tom
The text was updated successfully, but these errors were encountered: