UNPKG

@elgato-stream-deck/core

Version:

An npm module for interfacing with the Elgato Stream Deck

31 lines 971 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PedalPropertiesService = void 0; class PedalPropertiesService { #device; constructor(device) { this.#device = device; } async setBrightness(_percentage) { // Not supported } async resetToLogo() { // Not supported } async getFirmwareVersion() { const val = await this.#device.getFeatureReport(5, 32); const end = val.indexOf(0, 6); return new TextDecoder('ascii').decode(val.subarray(6, end === -1 ? undefined : end)); } async getAllFirmwareVersions() { return { AP2: await this.getFirmwareVersion(), }; } async getSerialNumber() { const val = await this.#device.getFeatureReport(6, 32); return new TextDecoder('ascii').decode(val.subarray(2, 14)); } } exports.PedalPropertiesService = PedalPropertiesService; //# sourceMappingURL=pedal.js.map