在安装好wiringpi2.60的库之后,用geany编辑器写好C语言代码,编译运行,结果出现了以下错误:
wiringpiSetup: Unable to open /dev/mem or /dev/gpiomem:Permission denied.
Aborting your program because if it can not access the GPIO
hardware then it most certianly won't work
Try running with sudo?
(program exited with code:1)
Press return to continue