@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
27 lines • 877 B
TypeScript
import { BlinkstickAny } from '../core/blinkstick';
import { ColorInput } from '../types';
import { Buffer } from 'node:buffer';
/**
* Class to control a group of LEDs on a Blinkstick device.
* Currently, it supports only "all LEDs" mode, but it can be extended to support more complex patterns.
* @category Implementation details
*/
export declare class LedGroup {
readonly blinkstick: BlinkstickAny;
protected readonly buffer: Buffer;
constructor(blinkstick: BlinkstickAny);
/**
* @summary Sets the color of all LEDs
* @param color
*/
setColor(color: ColorInput): Promise<void>;
/**
* @deprecated
*/
setColorAndForget(color: ColorInput): Promise<void>;
/**
* @summary Turns off all LEDs by setting their color to black (0, 0, 0).
*/
turnOff(): Promise<void>;
}
//# sourceMappingURL=led-group.d.ts.map