LPLED:
Filter:
Launchpad/Classes (extension) | Launchpad

LPLED
ExtensionExtension

A class to specify the color and behavior of the LED of the Launchpad

Description

LPLED is used to specify the color of a Launchpad LED. It implements also behaviors related to doublebuffering, as specified in the Launchpad Manual, but I did not use this. there is no need to deal with the internals of a LPLED.

Class Methods

.yellow

returns a LPLED in yellow color.

Arguments:

s

s is 1 or 2 for the brightness.

Returns:

a LPLED

.new

compose your color yourself.

Arguments:

green

0-3 brightness of the green LED.

red

0-3 brightness of the red LED.

clear

argument related to doublebuffering (not tested).

copy

argument related to doublebuffering (not tested).

Returns:

a LPLED

.green

returns a LPLED in green color.

Arguments:

s

1-3 brightness of the LED.

Returns:

a LPLED

.orange

returns a LPLED in orange color.

Arguments:

s

1-2 brightness of the LED.

Returns:

a LPLED

.black

returns a LPLED in black.

Returns:

a LPLED

.red

returns a LPLED in red color.

Arguments:

s

1-3 brightness of the LED.

Returns:

a LPLED

.amber

returns a LPLED in amber color.

Arguments:

s

1-3 brightness of the LED.

Returns:

a LPLED

Instance Methods

.vel

this method returns the velocity value. this is only useful when you like to set a LED on the Lauchpad by hand.

Returns:

a Integer