LEDStripRenderer

expect class LEDStripRenderer(ledStrip: NativeLEDStrip, stripColorManager: LEDStripColorManager, renderDelay: Long)

Manages rendering the colors on the strip

Parameters

stripColorManager

The color manager to get the color data from

actual class LEDStripRenderer(val ledStrip: NativeLEDStrip, val stripColorManager: LEDStripColorManager, val renderDelay: Long)

Manages rendering the colors on the strip

Parameters

stripColorManager

The color manager to get the color data from

Constructors

Link copied to clipboard
expect constructor(ledStrip: NativeLEDStrip, stripColorManager: LEDStripColorManager, renderDelay: Long)
actual constructor(ledStrip: NativeLEDStrip, stripColorManager: LEDStripColorManager, renderDelay: Long)

Properties

Link copied to clipboard
expect var isRendering: Boolean

Should the renderer be actually sending data to the strip?

actual var isRendering: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A logger that logs the color state of the strip at each render to a file for later use, such as debugging or animation signatures

Link copied to clipboard

Functions

Link copied to clipboard
expect fun close()

Perform cleanup

actual fun close()
Link copied to clipboard
expect fun startRendering()

Start rendering the strip

actual fun startRendering()
Link copied to clipboard
expect fun stopRendering()

Stop/pause rendering the strip

actual fun stopRendering()