UNPKG

blinkstick-ts

Version:
22 lines (21 loc) 517 B
"use strict"; /** * Provides access to BlinkStick devices * * @module blinkstick */ Object.defineProperty(exports, "__esModule", { value: true }); exports.BlinkStickLed = void 0; class BlinkStickLed { constructor(blinkStickChannel, index) { this.channel = blinkStickChannel; this.index = index; } setColor(color) { this.channel.setColor(color, this.index); } getColor() { return this.channel.getColor(this.index); } } exports.BlinkStickLed = BlinkStickLed;