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, getFileNamepublic 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 I2CBusclose in class I2CBusImplIOException - never in this implementationCopyright © 2012–2019 Pi4J. All rights reserved.