-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
- Field f = this.i2c.getClass().getDeclaredField("fd");
- f.setAccessible(true);
- this.fd = f.getInt(this.i2c);
+ this.fd = I2C.wiringPiI2CSetup(address);
+ if ( this.fd == -1 ){
+ throw new IOException("Unable to open device at address: " + address);
+ }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels