Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

LCDExample.java doesn't work in released 1.1 #275

Closed
Dumasen opened this issue Sep 20, 2016 · 1 comment
Closed

LCDExample.java doesn't work in released 1.1 #275

Dumasen opened this issue Sep 20, 2016 · 1 comment
Assignees
Milestone

Comments

@Dumasen
Copy link

Dumasen commented Sep 20, 2016

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

@savageautomate savageautomate added this to the RELEASE 1.2 milestone Dec 2, 2016
@savageautomate savageautomate self-assigned this Dec 2, 2016
@savageautomate
Copy link
Member

Duplicate of #278; Fixed in latest 1.2-SNAPSHOT build.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants