Skip to content

Commit db95bcb

Browse files
mikaelsundinfpistm
authored andcommitted
Added F13-F24 to USB HID.
1 parent ed4ef2f commit db95bcb

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Diff for: cores/arduino/stm32/usb/hid/usbd_hid_composite.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,10 @@ __ALIGN_BEGIN static uint8_t HID_KEYBOARD_ReportDesc[HID_KEYBOARD_REPORT_DESC_SI
478478
0x95, 0x06, // Report Count (6)
479479
0x75, 0x08, // Report Size (8)
480480
0x15, 0x00, // Logical Minimum (0)
481-
0x25, 0x65, // Logical Maximum(101)
481+
0x25, 0x73, // Logical Maximum(115)
482482
0x05, 0x07, // Usage Page (Key Codes)
483483
0x19, 0x00, // Usage Minimum (0)
484-
0x29, 0x65, // Usage Maximum (101)
484+
0x29, 0x73, // Usage Maximum (115)
485485
0x81, 0x00, // Input (Data, Array)
486486

487487
0xC0 // End Collection

Diff for: libraries/Keyboard/src/Keyboard.h

+12
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@
7070
#define KEY_F10 0xCB
7171
#define KEY_F11 0xCC
7272
#define KEY_F12 0xCD
73+
#define KEY_F13 0xF0
74+
#define KEY_F14 0xF1
75+
#define KEY_F15 0xF2
76+
#define KEY_F16 0xF3
77+
#define KEY_F17 0xF4
78+
#define KEY_F18 0xF5
79+
#define KEY_F19 0xF6
80+
#define KEY_F20 0xF7
81+
#define KEY_F21 0xF8
82+
#define KEY_F22 0xF9
83+
#define KEY_F23 0xFA
84+
#define KEY_F24 0xFB // Keyboard F24
7385

7486
// Low level key report: up to 6 keys and shift, ctrl etc at once
7587
typedef struct {

0 commit comments

Comments
 (0)