Compare commits
3 Commits
chore-kboo
...
fix-keyboa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38c60d9cc0 | ||
|
|
f6bef928fe | ||
|
|
5ab5ad5f0c |
@@ -1,7 +1,7 @@
|
||||
import { Device, devices } from 'node-hid';
|
||||
import { readFile } from 'fs-extra';
|
||||
import { EOL } from 'os';
|
||||
import MemoryMap from 'nrf-intel-hex';
|
||||
import * as MemoryMap from 'nrf-intel-hex';
|
||||
import { LogService } from 'uhk-common';
|
||||
|
||||
import { Constants, UsbCommand } from './constants';
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<textarea class="text-editor"
|
||||
[(ngModel)]="text"
|
||||
autofocus
|
||||
(keydown.escape)="cancelEditText()"
|
||||
(keydown.control.enter)="keydownEnter()"
|
||||
(keydown.alt.enter)="keydownEnter()"></textarea>
|
||||
<div class="pull-right buttons">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
class="svgKeyboard"
|
||||
[attr.viewBox]="viewBox"
|
||||
height="100%"
|
||||
width="100%">
|
||||
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -3,8 +3,14 @@
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.svgKeyboard {
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
editable-text {
|
||||
padding-left: 2em;
|
||||
padding-right: 2em;
|
||||
display: block;
|
||||
z-index: 51;
|
||||
}
|
||||
|
||||
17
packages/usb/kboot-firmware-upgrade.ts
Normal file
17
packages/usb/kboot-firmware-upgrade.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as path from 'path';
|
||||
import { LogService } from 'uhk-common';
|
||||
import { UhkHidDevice, UhkOperations } from 'uhk-usb';
|
||||
|
||||
const logService = new LogService();
|
||||
const rootDir = path.join(__dirname, '../../tmp');
|
||||
const uhkHidDevice = new UhkHidDevice(logService, {}, rootDir);
|
||||
const uhkOperations = new UhkOperations(logService, uhkHidDevice, rootDir);
|
||||
|
||||
uhkOperations
|
||||
.updateRightFirmware()
|
||||
.then(() => uhkOperations.updateLeftModule())
|
||||
.then(() => console.log('Firmware upgrade finished'))
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
process.exit(-1);
|
||||
});
|
||||
Reference in New Issue
Block a user