esp32-s3 使用tinyusb时,HID_KEY_MUTE无效

zhaoanguo222
Posts: 5
Joined: Wed Aug 30, 2023 3:25 am

esp32-s3 使用tinyusb时,HID_KEY_MUTE无效

Postby zhaoanguo222 » Sun Mar 03, 2024 1:30 pm

如题,我在keycode中设置按键为HID_KEY_MUTE无效,不知道有没有人出现过相同的问题,如何解决,我在做一个键盘,分别是音量加,音量减,静音,但三个keycode的无效
  1. keycode[0] = HID_KEY_VOLUME_UP;//HID_KEY_VOLUME_DOWN//HID_KEY_MUTE
  2. tud_hid_keyboard_report(HID_ITF_PROTOCOL_KEYBOARD, 0, keycode);
  3. vTaskDelay(pdMS_TO_TICKS(50));
  4. tud_hid_keyboard_report(HID_ITF_PROTOCOL_KEYBOARD, 0, NULL);

Who is online

Users browsing this forum: Google [Bot] and 47 guests