blinkstick-ts
Version:
BlinkStick TypeScript implementation
14 lines (13 loc) • 588 B
TypeScript
import { IBlinkStick } from "../blinkstick.interface";
import { Color } from "../color";
import { LedLine } from "../led-line.interface";
export declare class SimulatedBlinkStick implements IBlinkStick {
private readonly channels;
constructor(channels: LedLine[]);
setColor(color: Color, index?: number, channel?: number): void;
setColors(colors: Color[], channel?: number): void;
getColor(index?: number, channel?: number): Color;
getColors(count: number, index?: number, channel?: number): Color[];
getChannel(channel: number): LedLine;
close(): void;
}