You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 11, 2024. It is now read-only.
I tried to use LCDExample.java, but I got a fatal error: wiringPiSetup*: you must only call this once per program run. This is a fatal error. Please fix your code.
I think this error is caused by two times called GpioFactory.getInstance() in one running: the first is final GpioController gpio = GpioFactory.getInstance(), the other is final GpioLcdDisplay lcd = new GpioLcdDisplay(...).
If I comment final GpioController gpio = GpioFactory.getInstance(); (and other gpio using) line, the code works fine, and the the 16*2 Display writes everything.
I have to use very simular working in my project: LCD Display and Input/Output must be worked same time.
Somebody could help me solving this problem, maybe give me a workaround solution for it.
Best,
Dumasen
The text was updated successfully, but these errors were encountered:
Hi!
I tried to use LCDExample.java, but I got a fatal error: wiringPiSetup*: you must only call this once per program run. This is a fatal error. Please fix your code.
I think this error is caused by two times called GpioFactory.getInstance() in one running: the first is final GpioController gpio = GpioFactory.getInstance(), the other is final GpioLcdDisplay lcd = new GpioLcdDisplay(...).
If I comment final GpioController gpio = GpioFactory.getInstance(); (and other gpio using) line, the code works fine, and the the 16*2 Display writes everything.
I have to use very simular working in my project: LCD Display and Input/Output must be worked same time.
Somebody could help me solving this problem, maybe give me a workaround solution for it.
Best,
Dumasen
The text was updated successfully, but these errors were encountered: