API Docs for: 1.1.1
Show:

module Class

Publicly available functions to find BlinkSticks on the computer.

Item Index

Methods

Methods

findAll

() Array static

Find all attached BlinkStick devices.

Returns:

Array:

BlinkSticks.

Example:

var blinkstick = require('blinkstick');
var leds = blinkstick.findAll();

findAllSerials

(
  • callback
)
Array static

Returns the serial numbers of all attached BlinkStick devices.

Parameters:

  • callback Function

    Callback when all serials have been collected

Returns:

Array:

Serial numbers.

findBySerial

(
  • serial
  • callback
)
static

Find BlinkStick device based on serial number.

Parameters:

  • serial Number

    Serial number.

  • callback Function

    Callback 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();