UNPKG

blinkstick-ts

Version:
12 lines (11 loc) 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const blinkstick_1 = require("../blinkstick"); const color_1 = require("../color"); // const blinksticks = new BlinkSticks(); // console.log(blinksticks.findAll()); // const blinkstick = blinksticks.findFirst()!; const blinkstick = new blinkstick_1.BlinkStick('DevSrvsID:4295873602', 'BS048131-3.1', 'Agile Innovative Ltd', 'BlinkStick Flex'); blinkstick.setColor(color_1.Colors.red, 0); blinkstick.setColors([color_1.Colors.green, color_1.Colors.yellow, color_1.Colors.red]); const shouldBeGreen = blinkstick.getColor(0);