Skip to content

Commit bb6d855

Browse files
authored
Redo constants in NRKO example
Cleanup example from previous API.
1 parent 446f11b commit bb6d855

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

CircuitPython_MacroPad_NKRO/boot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import usb_hid
22

3-
BITMAP_KEYBOARD_DESCRIPTOR_REPORT_ID = 7
3+
REPORT_ID =0x4
44
REPORT_BYTES = 16
55
bitmap_keyboard_descriptor = bytes((
66
0x05, 0x01, # Usage Page (Generic Desktop),
77
0x09, 0x06, # Usage (Keyboard),
88
0xA1, 0x01, # Collection (Application),
9-
0x85, 0x04, # 6,7 Report ID
9+
0x85, REPORT_ID, # Report ID
1010
# bitmap of modifiers
1111
0x75, 0x01, # Report Size (1),
1212
0x95, 0x08, # Report Count (8),
@@ -42,8 +42,8 @@
4242
report_descriptor=bitmap_keyboard_descriptor,
4343
usage_page=0x1,
4444
usage=0x6,
45-
report_ids=(4,),
46-
in_report_lengths=(16,),
45+
report_ids=(REPORT_ID,),
46+
in_report_lengths=(REPORT_BYTES,),
4747
out_report_lengths=(1,),
4848
)
4949

0 commit comments

Comments
 (0)