status_light

Following are all of the functions that are linked to the Hub’s programmable Brick Status Light.

Example

var hub = serviceSPIKE.PrimeHub();
var status_light = hub.status_light;
// do something with status_light

Methods

static on(color)

Sets the color of the light.

Parameters:
Name Type Description
color string

["azure","black","blue","cyan","green","orange","pink","red","violet","yellow","white"]

Example
var hub = new Primehub()
hub.status_light.on("blue")

static off()

Turns off the light.

Example
var hub = new Primehub()
hub.status_light.off()