Good nights:
I have a problem and I have this code:
#include
#include
#include
int main(void)
{
int setup = 0;
setup = wiringPiSetupSys();
if(setup != -1)
{ while(1)
{
printf(“Waiting.\n”);
waitForInterrupt(7, -1);
printf(“Caught interrupt\n”);
}
}
return(EXIT_SUCCESS);
}
I compile the code and i don’t have any problem
gcc -o test main.c -lwiringPi
Later I do:
gpio edge 7 falling
I execute the program and the program don’t receive nothing and I have this:
Waiting.
I hope you can help me.
