Frame

public struct Frame

Color and time duration for frame.

  • Color of the LED.

    Declaration

    Swift

    public let color: Color
  • Duration for the color to be shown.

    Declaration

    Swift

    public let durationMs: UInt32
  • Initialize an LED pattern frame.

    Declaration

    Swift

    public init(color: Color, durationMs: Int)

    Parameters

    color

    The color to display for this frame.

    durationMs

    The length of time this frame lasts.