Different GPIO configurations simultaneously


2 posts
by j_ruizquintero » Mon Jul 17, 2017 7:48 am
Hi everyone,

I wanted to ask. I have been trying to use WiringPi and Pi4j libraries in a multithread application. But every time I try to run both I get the following error:

wiringPiSetup*: You must only call this once per program run. This is a fatal error. Please fix your code.

Thanks for you help! :D
Posts: 1
Joined: Mon Jul 17, 2017 7:04 am
by pcmanbob » Mon Jul 17, 2017 10:25 am
Hi.

From the error message I would say you are trying to run wiringPiSetup more than once in your program.

But as we cant see your program cant be sure, its always best to post your code when asking for help with error messages relating to it. please use code tags when posting code.
Please only ask questions in the forum I will not answer questions sent to me directly via PM
Remember we want information.......................no information no help
Posts: 1278
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK