Display isEepromBusy, areHalvesMerged, and isLeftHalfConnected states.
This commit is contained in:
@@ -8,6 +8,10 @@ function readKeyboardState() {
|
||||
device.write(uhk.getTransferData(payload));
|
||||
const receivedBuffer = device.readSync();
|
||||
console.log('Received', uhk.bufferToString(receivedBuffer));
|
||||
const isEepromBusy = receivedBuffer[1] !== 0 ? 'yes' : 'no ';
|
||||
const areHalvesMerged = receivedBuffer[2] !== 0 ? 'yes' : 'no ';
|
||||
const isLeftHalfConnected = receivedBuffer[3] !== 0 ? 'yes' : 'no ';
|
||||
console.log(`isEepromBusy: ${isEepromBusy} | areHalvesMerged: ${areHalvesMerged} | isLeftHalfConnected:${isLeftHalfConnected}`);
|
||||
setTimeout(readKeyboardState, 500)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user