We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 446f11b commit bb6d855Copy full SHA for bb6d855
1 file changed
CircuitPython_MacroPad_NKRO/boot.py
@@ -1,12 +1,12 @@
1
import usb_hid
2
3
-BITMAP_KEYBOARD_DESCRIPTOR_REPORT_ID = 7
+REPORT_ID =0x4
4
REPORT_BYTES = 16
5
bitmap_keyboard_descriptor = bytes((
6
0x05, 0x01, # Usage Page (Generic Desktop),
7
0x09, 0x06, # Usage (Keyboard),
8
0xA1, 0x01, # Collection (Application),
9
- 0x85, 0x04, # 6,7 Report ID
+ 0x85, REPORT_ID, # Report ID
10
# bitmap of modifiers
11
0x75, 0x01, # Report Size (1),
12
0x95, 0x08, # Report Count (8),
@@ -42,8 +42,8 @@
42
report_descriptor=bitmap_keyboard_descriptor,
43
usage_page=0x1,
44
usage=0x6,
45
- report_ids=(4,),
46
- in_report_lengths=(16,),
+ report_ids=(REPORT_ID,),
+ in_report_lengths=(REPORT_BYTES,),
47
out_report_lengths=(1,),
48
)
49
0 commit comments