setRGB

public final Unit setRGB(Color color)

Sets the color for each of the LEDs based on RGB values.

Parameters

color

The color to set the LEDs to.


public final Unit setRGB(Integer r, Integer g, Integer b)

Sets the color for each of the LEDs based on RGB values.

Parameters

r

(Red) Integer values between 0 - 255

g

(Green) Integer values between 0 - 255

b

(Blue) Integer values between 0 - 255