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

Multi-threading, event driven reads causing read/write errors? #399

Open
dwayne-mss opened this issue Dec 18, 2017 · 0 comments
Open

Multi-threading, event driven reads causing read/write errors? #399

dwayne-mss opened this issue Dec 18, 2017 · 0 comments

Comments

@dwayne-mss
Copy link

I am working with a RPI with an attached AdaFruit 16x2 display plate that includes 5 pushbuttons. I have a Java app that sleeps for a second and then wakes to run some code that includes writing to the display. While that is going on, I have a GPIO listener configured for button presses. I have almost constant, repeatable GPIO read and write errors when both the button listener and the display writes are enabled. Turn either off and read/write errors disappear.

The code is based on the MCP23017GpioExample.java example included in pi4j distro.

Both display and buttons are connected to a single MCP27017 expander. Should I expect to be able to do this? Or is this architecturally a bad idea/not supported?

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

No branches or pull requests

1 participant