| Modifier and Type | Class and Description |
|---|---|
class |
JNADevDevice
A device implementation that uses the /dev/i2c-* device interface
for the I2C communications with the device, and JNA for ioctl calls.
|
class |
MockDevice
A Device implementation that writes to the console instead
of to a real device.
|
class |
Pi4JDevice
A Device implementation that uses Pi4J for the
low-level I2C communications with the device.
|
| Modifier and Type | Method and Description |
|---|---|
Device |
Device.closeOnShutdown(boolean enable)
Specifies whether to set a system shutdown
hook to close this device when the JVM exits.
|
Device |
Device.configure(int config)
Configures the device.
|
Device |
Device.init()
Initializes the device.
|
static Device |
Device.newInstance()
Returns a new Device instance.
|
static Device |
Device.newInstance(String impl)
Returns a new Device instance using the given implementation.
|
Device |
Device.open(int address)
Opens the connection to I2C bus number 1
and to the device at the given address.
|
Device |
Device.open(int busNumber,
int address)
Opens the connection to the I2C bus and
to the device at the given address.
|
protected abstract Device |
Device.openImpl(int busNumber,
int address)
Opens the connection to the I2C bus and
to the device at the given address.
|
protected Device |
MockDevice.openImpl(int busNumber,
int address) |
protected Device |
JNADevDevice.openImpl(int busNumber,
int address) |
protected Device |
Pi4JDevice.openImpl(int busNumber,
int address) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Animation.gradualBrightness(Device device,
int startValue,
int endValue,
int duration)
Gradually changes the display brightness.
|
static void |
Animation.scroll(Device device,
byte[] matrix,
int interval,
int iterations)
Scrolls the display from left to right (with spaces before and after text)
|
static void |
Animation.scroll(Device device,
byte[] matrix,
int interval,
int iterations,
int spaceBefore,
int spaceAfter)
Scrolls the display from left to right.
|
static void |
Animation.transitionHorizontally(Device device,
byte[] matrix1,
byte[] matrix2,
int interval) |
static void |
Animation.transitionVertically(Device device,
byte[] matrix1,
byte[] matrix2,
int interval) |
Copyright © 2017 freeutils.net. All rights reserved.