adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
476 stars 127 forks source link

examples/HID/hid_boot_keyboard not working. #411

Closed okiraku-camera closed 6 months ago

okiraku-camera commented 6 months ago

Operating System

Windows 10

Arduino IDE version

1.8.19

Board

Adafruit KB2040

ArduinoCore version

Arduino-pico 3.7.2

TinyUSB Library version

2.4.0 ... 3.1.1

Sketch as ATTACHED TXT

examples/HID/hid_boot_keyboard/hid_boot_keyboard.ino

Compiled Log as ATTACHED TXT

log.txt

What happened ?

The target board doesn't function as an HID device because various HID descriptors are not registered at all.

How to reproduce ?

Build and upload the sketch to the target board. As a workaround, commenting out the specific line makes it work correctly. // usb_hid.setStringDescriptor("TinyUSB Keyboard");

Debug Log

No response

Screenshots

No response

hathach commented 6 months ago

duplicated, check out this comment for the fix. In short, you need to remove the tinyusb lib v2 inside the installation core and replace it with V3 as well https://github.com/adafruit/Adafruit_TinyUSB_Arduino/issues/379#issuecomment-2011185932