The USB device
Optional
serialNumber: stringSerial number of the device. Used only in Windows.
Optional
manufacturer: stringManufacturer of the device. Used only in Windows.
Optional
product: stringProduct name of the device. Used only in Windows.
Readonly
deviceReadonly
manufacturerReadonly
productReadonly
requiresReadonly
serialThis allows BlinkStick instances to be used with explicit resource management
Close BlinkStick device and stop all animations
Returns library-defined device description.
Get the current color visible on BlinkStick
The index of the LED, 0 is default
Get the current color as hex string.
The index of the LED, 0 is default
Get the description of the device
Get a feature report from the device.
Report ID to receive
Expected length of the report
Maximum number of retries
Get the infoblock1 of the device. This is a 32 byte array that can contain any data. It's supposed to hold the "Name" of the device making it easier to identify rather than a serial number.
Get the manufacturer of the device
Returns the serial number of device.
BSnnnnnn-1.0 || | | |- Software minor version || | |--- Software major version || |-------- Denotes sequential number ||----------- Denotes BlinkStick device
Software version defines the capabilities of the device
Get the major version from serial number
Major version number from serial
Get the minor version from serial number
Minor version number from serial
Morphs to specified RGB color from current color.
Function supports the following overloads:
//Available overloads
morph(red, green, blue, [options], [callback]); // use [0..255] ranges for intensity
morph(color, [options], [callback]); // use '#rrggbb' format
morph(color_name, [options], [callback]); // use 'random', 'red', 'green', 'yellow' and other CSS supported names
Options can contain the following parameters for object:
- channel=0: Channel is represented as 0=R, 1=G, 2=B
- index=0: The index of the LED
- duration=1000: How long should the morph animation last in milliseconds
- steps=50: How many steps for color changes
Pulses specified RGB color.
Function supports the following overloads:
//Available overloads
pulse(red, green, blue, [options], [callback]); // use [0..255] ranges for intensity
pulse(color, [options], [callback]); // use '#rrggbb' format
pulse(color_name, [options], [callback]); // use 'random', 'red', 'green', 'yellow' and other CSS supported names
Options can contain the following parameters for object:
- channel=0: Channel is represented as 0=R, 1=G, 2=B
- index=0: The index of the LED
- duration=1000: How long should the pulse animation last in milliseconds
- steps=50: How many steps for color changes
Low-level method that directly sends a feature report to the device.
Set the color of LEDs
Set the color frame on BlinkStick Pro Missing colors are filled with zeros.
Channel is represented as 0=R, 1=G, 2=B
LED data in the following format: [g0, r0, b0, g1, r1, b1...]
Set a feature report to the device.
Report ID to receive
Data to send to the device
Maximum number of retries
Set inverse mode for IKEA DIODER in conjunction with BlinkStick v1.0
Set true for inverse mode and false otherwise
Set mode for BlinkStick Pro
You can read more about BlinkStick modes by following this link:
http://www.blinkstick.com/help/tutorials/blinkstick-pro-modes
Stop all animations
Main class responsible for controlling BlinkStick devices.