Skip to content

Commit d4bbd8e

Browse files
committed
✨ add HE16
1 parent 2de594f commit d4bbd8e

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

src/constants/device-metadata.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
1515

16+
import { HE16 } from "./devices/HE16"
1617
import { HE60 } from "./devices/HE60"
1718
import { M256_WHE } from "./devices/M256-WHE"
1819

19-
export const DEVICE_METADATA = [HE60, M256_WHE]
20+
export const DEVICE_METADATA = [HE16, HE60, M256_WHE]

src/constants/devices/HE16.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify it under
3+
* the terms of the GNU General Public License as published by the Free Software
4+
* Foundation, either version 3 of the License, or (at your option) any later
5+
* version.
6+
*
7+
* This program is distributed in the hope that it will be useful, but WITHOUT
8+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
10+
* details.
11+
*
12+
* You should have received a copy of the GNU General Public License along with
13+
* this program. If not, see <https://www.gnu.org/licenses/>.
14+
*/
15+
16+
import { DeviceMetadata, deviceMetadataSchema } from "@/types/device-metadata"
17+
import { Keycode } from "@/types/keycodes"
18+
19+
export const HE16: DeviceMetadata = deviceMetadataSchema.parse({
20+
name: "HE16",
21+
vendorId: 0xab50,
22+
productId: 0xab16,
23+
numProfiles: 4,
24+
numLayers: 4,
25+
numKeys: 16,
26+
numAdvancedKeys: 32,
27+
layout: [
28+
[{ key: 0 }, { key: 1 }, { key: 2 }, { key: 3 }],
29+
[{ key: 4 }, { key: 5 }, { key: 6 }, { key: 7 }],
30+
[{ key: 8 }, { key: 9 }, { key: 10 }, { key: 11 }],
31+
[{ key: 12 }, { key: 13 }, { key: 14 }, { key: 15 }],
32+
],
33+
defaultKeymap: [
34+
Array(16).fill(Keycode._______),
35+
Array(16).fill(Keycode._______),
36+
Array(16).fill(Keycode._______),
37+
Array(16).fill(Keycode._______),
38+
],
39+
})

0 commit comments

Comments
 (0)