@logitech-mx-creative-console/core
Version:
An npm module for interfacing with the Logitech MX Creative Console
24 lines • 1.02 kB
JavaScript
import { DeviceModelId, MODEL_NAMES } from './id.js';
import { mxCreativeKeypadFactory, mxCreativeKeypadInitWrites } from './models/mx-creative-keypad.js';
export * from './types.js';
export * from './id.js';
export * from './controlDefinition.js';
export { MXCreativeConsoleProxy } from './proxy.js';
export { uint8ArrayToDataView } from './util.js';
/** Logitech vendor id */
export const VENDOR_ID = 0x046d;
/** List of all the known models, and the classes to use them */
export const DEVICE_MODELS2 = {
[DeviceModelId.MX_CREATIVE_KEYPAD]: {
productIds: [0xc354],
factory: mxCreativeKeypadFactory,
initWrites: mxCreativeKeypadInitWrites,
},
// [DeviceModelId.MX_CREATIVE_DIALPAD]: { productIds: [0xbc00], factory: mxCreativeKeypadFactory },
};
/** @deprecated maybe? */
export const DEVICE_MODELS = Object.entries(DEVICE_MODELS2).map(([id, spec]) => {
const modelId = id;
return { id: modelId, productName: MODEL_NAMES[modelId], ...spec };
});
//# sourceMappingURL=index.js.map