Class StreamDeckConstants
java.lang.Object
de.rcblum.stream.deck.device.StreamDeckConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SDImageBack image for not used keysstatic final byte[]Brightness commandstatic final byte[]Brightness commandstatic final intNumber of buttons on the ESD, assuming the standard ESDstatic final DeckDescriptorstatic final DimensionIcon size of one key (Use the greatest size)static final byte[]REV1 Input Report for dials Keysstatic final byte[]REV2 Input Report for dials Keysstatic final byte[]REV1 Input Report for normal Keysstatic final byte[]REV2 Input Report for normal Keysstatic final byte[]REV1 Input Report for dials Keysstatic final byte[]REV2 Input Report for dials Keysstatic final intPixels(times 3 to get the amount of bytes) of an icon that can be sent with page 1 of the image commandstatic final intPixels(times 3 to get the amount of bytes) of an icon that can be sent with page 2 of the image commandstatic final intPage size that can be sent to the ESD at oncestatic final intPage size that can be sent to the ESD at oncestatic final byte[]Reset commandstatic final byte[]Reset commandstatic final intNumber of rows on the ESD, assuming the standard ESDstatic final DimensionIcon size of one key (Use the greatest size) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinternalDrawFullImageRev2(purejavahidapi.HidDevice hidDevice, int keyIndex, Dimension iconSize, SDImage imgData) static voidinternalDrawImageRev1(purejavahidapi.HidDevice hidDevice, int keyIndex, Dimension iconSize, SDImage imgData) static voidinternalDrawImageRev2(purejavahidapi.HidDevice hidDevice, int keyIndex, Dimension iconSize, SDImage imgData) static voidinternalDrawImageRev2(purejavahidapi.HidDevice hidDevice, int keyIndex, Dimension iconSize, SDImage imgData, byte[] pageHeader) static voidinternalDrawTouchScreenRev2(purejavahidapi.HidDevice hidDevice, Point imageStart, Dimension imageSize, SDImage imgData) static voidinternalResetRev1(purejavahidapi.HidDevice hidDevice) Sends reset-command to ESD REV1static voidinternalResetRev2(purejavahidapi.HidDevice hidDevice) Sends reset-command to ESD REV2static voidinternalUpdateBrightnessRev1(purejavahidapi.HidDevice hidDevice, int brightnessValue) Sends brightness-command to ESD REV1static voidinternalUpdateBrightnessRev2(purejavahidapi.HidDevice hidDevice, int brightnessValue) Sends brightness-command to ESD REV2static byte[]updateTouchScreenHeader(byte[] header, Point imageStart, Dimension imageSize, int chunkNo, boolean lastChunk, int payLoadLength)
-
Field Details
-
RESET_DATA_REV2
public static final byte[] RESET_DATA_REV2Reset command -
BRIGHTNES_DATA_REV2
public static final byte[] BRIGHTNES_DATA_REV2Brightness command -
PAGE_PACKET_SIZE_REV2
public static final int PAGE_PACKET_SIZE_REV2Page size that can be sent to the ESD at once- See Also:
-
INPUT_REPORT_IMAGE_KEY_REV2
public static final byte[] INPUT_REPORT_IMAGE_KEY_REV2REV2 Input Report for normal Keys -
INPUT_REPORT_DIAL_REV2
public static final byte[] INPUT_REPORT_DIAL_REV2REV2 Input Report for dials Keys -
INPUT_REPORT_TOUCH_SCREEN_REV2
public static final byte[] INPUT_REPORT_TOUCH_SCREEN_REV2REV2 Input Report for dials Keys -
BRIGHTNES_DATA_REV1
public static final byte[] BRIGHTNES_DATA_REV1Brightness command -
RESET_DATA_REV1
public static final byte[] RESET_DATA_REV1Reset command -
INPUT_REPORT_IMAGE_KEY_REV1
public static final byte[] INPUT_REPORT_IMAGE_KEY_REV1REV1 Input Report for normal Keys -
INPUT_REPORT_DIAL_REV1
public static final byte[] INPUT_REPORT_DIAL_REV1REV1 Input Report for dials Keys -
INPUT_REPORT_TOUCH_SCREEN_REV1
public static final byte[] INPUT_REPORT_TOUCH_SCREEN_REV1REV1 Input Report for dials Keys -
PAGE_PACKET_SIZE_REV1
public static final int PAGE_PACKET_SIZE_REV1Page size that can be sent to the ESD at once- See Also:
-
NUM_FIRST_PAGE_PIXELS_REV1
public static final int NUM_FIRST_PAGE_PIXELS_REV1Pixels(times 3 to get the amount of bytes) of an icon that can be sent with page 1 of the image command- See Also:
-
NUM_SECOND_PAGE_PIXELS_REV1
public static final int NUM_SECOND_PAGE_PIXELS_REV1Pixels(times 3 to get the amount of bytes) of an icon that can be sent with page 2 of the image command- See Also:
-
BUTTON_COUNT
public static final int BUTTON_COUNTNumber of buttons on the ESD, assuming the standard ESD- See Also:
-
ROW_COUNT
public static final int ROW_COUNTNumber of rows on the ESD, assuming the standard ESD- See Also:
-
DEFAULT_STREAM_DECK_DESCRIPTOR
-
ICON_SIZE
Icon size of one key (Use the greatest size) -
TOUCH_SCREEN_SIZE
Icon size of one key (Use the greatest size) -
BLACK_ICON
Back image for not used keys
-
-
Constructor Details
-
StreamDeckConstants
public StreamDeckConstants()
-
-
Method Details
-
internalResetRev2
public static void internalResetRev2(purejavahidapi.HidDevice hidDevice) Sends reset-command to ESD REV2 -
internalUpdateBrightnessRev2
public static void internalUpdateBrightnessRev2(purejavahidapi.HidDevice hidDevice, int brightnessValue) Sends brightness-command to ESD REV2 -
internalDrawImageRev2
-
updateTouchScreenHeader
-
internalDrawTouchScreenRev2
-
internalDrawFullImageRev2
-
internalDrawImageRev2
-
internalResetRev1
public static void internalResetRev1(purejavahidapi.HidDevice hidDevice) Sends reset-command to ESD REV1 -
internalUpdateBrightnessRev1
public static void internalUpdateBrightnessRev1(purejavahidapi.HidDevice hidDevice, int brightnessValue) Sends brightness-command to ESD REV1 -
internalDrawImageRev1
-