Cant find I2CFactory and I2CDevice #471
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 |
Beta Was this translation helpful? Give feedback.
-
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); |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
problem solved |
Beta Was this translation helpful? Give feedback.
-
Hey Ron. Glad you got it going |
Beta Was this translation helpful? Give feedback.
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?
Beta Was this translation helpful? Give feedback.
All reactions