module Class
Publicly available functions to find BlinkSticks on the computer.
Item Index
Methods
- findAll static
- findAllSerials static
- findBySerial static
- findFirst static
Methods
findAll
()
Array
static
Find all attached BlinkStick devices.
Returns:
Array:
BlinkSticks.
Example:
var blinkstick = require('blinkstick');
var leds = blinkstick.findAll();
findAllSerials
(
Array
static
-
callback
Returns the serial numbers of all attached BlinkStick devices.
Parameters:
-
callback
FunctionCallback when all serials have been collected
Returns:
Array:
Serial numbers.
findBySerial
(
static
-
serial
-
callback
Find BlinkStick device based on serial number.
Parameters:
-
serial
NumberSerial number.
-
callback
FunctionCallback when BlinkStick has been found
findFirst
()
BlinkStick | Undefined
static
Find first attached BlinkStick.
Returns:
BlinkStick | Undefined:
The first BlinkStick, if found.
Example:
var blinkstick = require('blinkstick');
var led = blinkstick.findFirst();