public class Registers
extends java.lang.Object
Constructor and Description |
---|
Registers() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
buildReadCommand(Register register,
byte... parameters)
Builds an array of bytes corresponding to reading a register value.
|
static byte[] |
buildWriteCommand(Register register,
byte... parameters)
Builds an array of bytes corresponding to writing a register value.
|
public static byte[] buildReadCommand(Register register, byte... parameters)
register
- Register to read fromparameters
- Additional parameters for the read command e.g. a pixel index
or a io pin numberMetaWear.COMMAND
public static byte[] buildWriteCommand(Register register, byte... parameters)
register
- Register to write toparameters
- Additional parameters for the write command e.g. LED color or
a disable/enable bitMetaWear.COMMAND