UNPKG

@ginden/blinkstick-v2

Version:
46 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FeatureReportId = exports.FeatureReportDescription = void 0; /** * Based on https://github.com/subzey/blinkstick-webhid */ exports.FeatureReportDescription = { SetFirst: { reportId: 0x01, bufferLength: 3, }, InfoBlock1: { reportId: 0x02, bufferLength: 32, }, InfoBlock2: { reportId: 0x03, bufferLength: 32, }, SetMode: { reportId: 0x04, bufferLength: 1, }, SetArbitraryPixel: { reportId: 0x05, bufferLength: 5, }, Set8Pixels: { reportId: 0x06, bufferLength: 25, }, Set16Pixels: { reportId: 0x07, bufferLength: 49 /* 1 + 3 * 16 */, }, Set32Pixels: { reportId: 0x08, bufferLength: 97 /* 1 + 3 * 32 */, }, Set64Pixels: { reportId: 0x09, bufferLength: 193 /* 1 + 3 * 64 */, }, }; exports.FeatureReportId = Object.fromEntries(Object.entries(exports.FeatureReportDescription).map(([key, value]) => [key, value.reportId])); //# sourceMappingURL=feature-report.js.map