public interface I2CBus
Modifier and Type | Field and Description |
---|---|
static int |
BUS_0 |
static int |
BUS_1 |
static int |
BUS_2 |
static int |
BUS_3 |
static int |
BUS_4 |
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
static final int BUS_2
static final int BUS_3
static final int BUS_4
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–2015 Pi4J. All rights reserved.