pigpio needs an update #328
RonaldTHerman
started this conversation in
General
Replies: 2 comments
|
That newer interface is . default int readRegister(byte[] register, byte[] buffer) { Only available when using the linuxfs provider. "linuxfs-i2c" Usage: https://github.com/taartspi/pi4j-example-devices/blob/master/src/main/java/com/pi4j/devices/at24c512/AT24C512.java |
0 replies
|
Ok I found the jar download.. need to figure out how to get it to work with the I2c code I have. ---------------------------------Ronald T. ***@***.*** NHOn Feb 21, 2024, at 1:30 PM, Tom Aarts ***@***.***> wrote:
That newer interface is . default int readRegister(byte[] register, byte[] buffer) {
return this.readRegister(register, buffer, buffer.length);
}
public int readRegister(byte[] register, byte[] buffer, int offset, int length)
Only available when using the linuxfs provider. "linuxfs-i2c" Usage: https://github.com/taartspi/pi4j-example-devices/blob/master/src/main/java/com/pi4j/devices/at24c512/AT24C512.java
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to read from and I2C device that requires a 16 bit register address. I saw something that suggests pi4j has been changed to allow such but apparently pipio doesn't..Here is the error I get
The base I2C address is 0x11. Within that module is a register at 0x30 giving a full address of 0x00110030
any help appreciated.
All reactions