j_ruizquintero
Posts: 1
Joined: Mon Jul 17, 2017 7:04 am

Different GPIO configurations simultaneously

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

pcmanbob
Posts: 1607
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Different GPIO configurations simultaneously

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

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 42 guests