Create a high-level reference to a blink(1) HID device.
Get the degamma setting. Default value is true
degamma enabled flag
Update the degamma setting.
The new enabled or disabled value
degamma enabled flag
Continuously play an alternating pattern of the rgb color parameter in an on/off sequence. Senders should call stop() or off() to cancel the blink loop.
Promise
Clear all pattern data from Blink(1) non-volatile memory.
Promise
Close the underlying HID device.
Promise
Disable the ServerDown feature.
A promise to await on.
Enable the ServerDown feature that will trigger a display pattern
Promise
Transition one or both LEDs to a new RGB color.
The milliseconds for the transition.
Promise
Immediately disable output.
Promise
Animate the sequence of color patterns in RAM beginning at a specific index in the sequence.
The index [0-31] into the sequence of color patterns.
Promise
Repeatedly animate a range of color patterns in RAM beginning at start index in the sequence to an end index the sequence.
Promise
Return the color pattern data at position in RAM.
Promise
Access the device current RGB value.
The led to read the RGB value from.
A promise that resolves to the current RGB values.
Save all patterns in to Blink(1) non-volatile memory.
Promise
Set the led to which future writePattern() calls will apply.
The led to make default
Promise
Immediately output an RGB color. For mk2 devices both LEDs will present the RGB color.
Promise
Immediately stop presenting color patterns from RAM.
Promise
Return the version number of the blink(1) HID device.
Promise
Send an array of PatternLineData to a blink(1) device.
The array of PatternLineData
Promise
Insert a new color pattern into the sequence of color patterns in RAM.
The duration in milliseconds for the transition from the current color to the new RGB colors of this pattern
Promise
Utility method that a sender can await on from an async function or method to create a delay-like execution experience.
A Promise that the sender can await on to simulate a delay
Find all connected blink(1) devices.
Array of found blink(1) serial numbers.
Generated using TypeDoc
An asynchronous api for controlling blink(1) USB LED devices.