Skip to content

When I used the USBHID and BLE I needed to define USB_HID_KEYS as the Keys are previous defined. #40

@EmileSpecialProducts

Description

@EmileSpecialProducts

When I used the USBHID and BLE I needed to define USB_HID_KEYS as the Keys are previous defined.
But the KEY_LED_xxxx keys need to be outside of the #ifdef USB_HID_KEYS
In the KeyboardHIDCodes.h file.

Something like this at the end of the file KeyboardHIDCodes.h.

#endif // USB_HID_KEYS

#ifndef USB_HID_LED_KEYS
#define USB_HID_LED_KEYS
// LED bitflags
#define KEY_LED_NUMLOCK 0x1
#define KEY_LED_CAPSLOCK 0x2
#define KEY_LED_SCROLLLOCK 0x4
#define KEY_LED_COMPOSE 0x8
#define KEY_LED_KANA 0x10
#endif // USB_HID_LED_KEYS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions