public interface I2CBus
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this bus.
|
I2CDevice |
getDevice(int address)
Returns i2c device.
|
int |
getFileDescriptor() |
String |
getFileName() |
static final int BUS_0
static final int BUS_1
I2CDevice getDevice(int address) throws IOException
address
- i2c device's addressIOException
- thrown in case this bus cannot return i2c device.String getFileName()
int getFileDescriptor()
void close() throws IOException
IOException
- thrown in case there are problems closing this i2c bus.Copyright © 2012–2019 Pi4J. All rights reserved.