Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LEDGroup

Hierarchy

  • LEDGroup

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private leds

leds: LED[]

Accessors

isConnected

  • get isConnected(): boolean

Methods

allOff

  • allOff(): void

allOn

  • allOn(): void

setColor

  • setColor(colorCombination: number[], pctPower: number): void
  • Sets the brightness percentages for each LED in the group to the given percentages, scaling each according to the given percent power scale if provided.

    Parameters

    • colorCombination: number[]

      The percent powers to use for each LED, applied to the corresponding index in the LED group.

    • pctPower: number

      The scale factor to multiply each value by. Leave undefined or null to default to 1.

    Returns void

setProps

  • setProps(props: object): void
  • Sets the given property names to the corresponding values on each LED in the group.

    If the requested property does not exist on the LED object, the property is skipped.

    Parameters

    • props: object

      A hash containing the key-value pairs of properties to set.

      • [propName: string]: any

    Returns void

Generated using TypeDoc