public class I2CBusImplBananaPi extends I2CBusImpl
fd, filename
Constructor and Description |
---|
I2CBusImplBananaPi(String filename)
Constructor of i2c bus implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this i2c bus
|
static I2CBus |
getBus(int busNumber)
Factory method that returns bus implementation.
|
getDevice, getFileDescriptor, getFileName
public I2CBusImplBananaPi(String filename) throws IOException
filename
- file name of device to be opened.IOException
- thrown in case that file cannot be openedpublic static I2CBus getBus(int busNumber) throws IOException
busNumber
- bus numberIOException
- thrown in case there is a problem opening bus file or bus number is not 0 or 1.public void close() throws IOException
close
in interface I2CBus
close
in class I2CBusImpl
IOException
- never in this implementationCopyright © 2012–2019 Pi4J. All rights reserved.