Repository navigation
Cant find I2CFactory and I2CDevice #471
Closed
RonaldTHerman
started this conversation in
General
Replies: 5 comments 8 replies
|
https://www.pi4j.com/documentation/io-examples/i2c/. Maybe look at this example to see what imports are relevant to i2c in V2. It is a simple example easy to code up. Not all those imports are needed in v2. With mention of factory are you migrating from pi4j V1 ? Tom |
1 reply
|
I think those basic steps are in the example i listed PS. You mentioned your device does not use registers So you would use tca9534Dev.write(currentState); |
7 replies
|
Got things working with i2c.write(0xFF) without linux files... I tried this first time but must have had a loose wire.. Thanks for your patience. |
0 replies
|
problem solved |
0 replies
|
Hey Ron. Glad you got it going |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have pi4j 2.7.1 library. I'm looking to
import com.pi4j.io.i2c.I2CDevice;
import com.pi4j.io.i2c.I2CFactory;
But it cant find them but it does find
import com.pi4j.io.i2c.I2CBus
What am I missing?
All reactions