UNPKG

@ginden/blinkstick-v2

Version:
27 lines 830 B
import { BlinkstickAny } from '../core/blinkstick'; import { RgbTuple } from '../types'; /** * Class to control a single LED on a Blinkstick device. * @category Implementation details */ export declare class Led { /** * Reference to the Blinkstick device that this LED belongs to. */ readonly blinkstick: BlinkstickAny; /** * Index of the LED on the Blinkstick device. */ readonly index: number; constructor(blinkstick: BlinkstickAny, index: number); setColor(red: number, green: number, blue: number): Promise<void>; /** * Returns RGB tuple representing the current color of the LED. */ getColor(): Promise<RgbTuple>; /** * Turns of the LED by setting its color to black (0, 0, 0). */ turnOff(): Promise<void>; } //# sourceMappingURL=led.d.ts.map