Add switch-keymap.js
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
const uhk = require('./uhk');
|
||||||
|
|
||||||
|
const device = uhk.getUhkDevice();
|
||||||
|
const sendData = Buffer.concat([new Buffer([uhk.usbCommands.switchKeymap, 3]), new Buffer('TES')]);
|
||||||
|
console.log(sendData)
|
||||||
|
device.write(uhk.getTransferData(sendData));
|
||||||
|
const response = Buffer.from(device.readSync());
|
||||||
|
console.log(response);
|
||||||
@@ -299,6 +299,7 @@ uhk = exports = module.exports = moduleExports = {
|
|||||||
getModuleProperty : 0x0e,
|
getModuleProperty : 0x0e,
|
||||||
getSlaveI2cErrors : 0x0f,
|
getSlaveI2cErrors : 0x0f,
|
||||||
setI2cBaudRate : 0x10,
|
setI2cBaudRate : 0x10,
|
||||||
|
switchKeymap : 0x11,
|
||||||
},
|
},
|
||||||
enumerationModes: {
|
enumerationModes: {
|
||||||
bootloader: 0,
|
bootloader: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user