light_matrix

Hub's light matrix

Example

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

Methods

static set_pixel(x, y, brightness)

Sets the brightness of one pixel (one of the 25 LED) on the Light Matrix.

Parameters:
Name Type Description
x integer

[0 to 4]

y integer

[0 to 4]

brightness integer

[0 to 100]

static write(message)

Writes text on the Light Matrix, one letter at a time, scrolling from right to left.

Parameters:
Name Type Description
message string

static off()

Turns off all the pixels on the Light Matrix.