UNPKG

blinkstick-ts

Version:
20 lines (19 loc) 633 B
/** * Provides access to BlinkStick devices * * @module blinkstick */ import { BlinkStick } from './blinkstick'; import { Color } from './color'; import { LedLine } from './led-line.interface'; import { Led } from './led.interface'; export declare class BlinkStickChannel implements LedLine { private readonly blinkStick; private readonly channel; constructor(blinkStick: BlinkStick, channel?: number); setColor(color: Color, index?: number): void; setColors(colors: Color[]): void; getColor(index?: number): Color; getColors(count: number, index?: number): Color[]; getLed(index: number): Led; }