Replies: 2 comments
-
I think the problem lies within this function extern "C" void tud_hid_set_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_t report_type, uint8_t const* buffer, uint16_t bufsize) {
(void) report_id;
(void) instance;
if ((report_type == HID_REPORT_TYPE_OUTPUT) && (bufsize > 0) && (Keyboard._ledCB)) {
uint8_t const kbd_leds = buffer[0];
Keyboard._ledCB(kbd_leds & KEYBOARD_LED_NUMLOCK, kbd_leds & KEYBOARD_LED_CAPSLOCK, kbd_leds & KEYBOARD_LED_SCROLLLOCK, kbd_leds & KEYBOARD_LED_COMPOSE, kbd_leds & KEYBOARD_LED_KANA, Keyboard._ledCBdata);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed it! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to C++ and I wanted to have one keyboard instance that can be either KeyboardBT or Keyboard so that I can choose between them based on a file on the flash. begin(), press(), and releaseAll() work just fine but onLED() doesn't work for me. Is this something that can't be fixed or have I done something wrong?
Beta Was this translation helpful? Give feedback.
All reactions