Closed RRcom closed 3 years ago
I have the same problem for lite 2
@RRcom you need to do some hacking on the gpio/gpio.c and look for this function and comment out the BOLD code. The original wiringPi function is expecting bcmGpio as input pin and here the code reconvert again (probably it assumes input pin is wiringPi pin). Remove it then you will be fine but i am not sure what is the implication for others. May be the author knows it.
void doEdge (int argc, char *argv [])
{
FILE *fd ;
int pin ;
char *mode ;
char fName [128] ;
if (argc != 4)
{
fprintf (stderr, "Usage: %s edge pin mode\n", argv [0]) ;
exit (1) ;
}
pin = atoi (argv [2]) ;
#ifdef CONFIG_ORANGEPI
#pin = pinToGpioOrangePi[pin];
#ifdef CONFIG_ORANGEPI_RK3399
pin += 1000;
#endif
#endif
......
}
When using c++ wiringPiISR() I get this error (even using root)
here is my code
include
int main() { wiringPiSetup();
}