LEDStrip

class LEDStrip(val stripInfo: StripInfo, val nativeLEDStrip: NativeLEDStrip)

Manages the managers that manage all aspects of the strip, from animations to sending colors to the strip to sections of the strip, etc.

Constructors

Link copied to clipboard
constructor(stripInfo: StripInfo, nativeLEDStrip: NativeLEDStrip)

Properties

Link copied to clipboard

Manages animations running on the strip

Link copied to clipboard

Manages colors on the strip

Link copied to clipboard

Callback run after the last iteration of the animation (but before the animation is removed from animationManager.runningAnimations)

Link copied to clipboard

The actual LED strip this instance is managing

Link copied to clipboard

Callback to run when a new section is created

Link copied to clipboard

The number of pixels in this strip

Link copied to clipboard

Callback run when an animation is paused

Link copied to clipboard

A list of the actual colors for the strip

Link copied to clipboard

A list of the fade colors for the strip

Link copied to clipboard

A list of the valid pixel indices in this strip

Link copied to clipboard

A list of the prolonged colors for the strip

Link copied to clipboard

A list of the temporary colors for the strip

Link copied to clipboard

Manages rendering the colors on the strip

Link copied to clipboard

Callback run when an animation is resumed

Link copied to clipboard

Manages strip sections

Link copied to clipboard

Callback run before the first iteration of the animation

Link copied to clipboard

Information about this strip

Functions

Link copied to clipboard

Add a new animation to the list of supported animations

Link copied to clipboard

Add a new animation group to the list of supported animations

Link copied to clipboard

Clear the strip (set all pixels to 0)

Link copied to clipboard
fun close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Revert a pixel's color (reset its temporary color)

Link copied to clipboard

Revert multiple pixels' color (reset their temporary colors)

Link copied to clipboard
fun LEDStrip.setPixelFadeColor(pixel: Int, color: Int)

Set a pixel's fade color

Link copied to clipboard

Set multiple pixel's fade color

fun LEDStrip.setPixelFadeColors(pixels: List<Int>, color: Int)

Set multiple pixels' fade color

Link copied to clipboard

Set a pixel's prolonged color

Link copied to clipboard

Set multiple pixels' prolonged color

Link copied to clipboard

Set a pixel's temporary color

Link copied to clipboard

Set multiple pixels' temporary color

Link copied to clipboard

Set the strip's fade color

Link copied to clipboard

Set the strip's prolonged color

Link copied to clipboard

Set the strip's temporary color