Page 1 of 1

esp32-s3 使用tinyusb时,HID_KEY_MUTE无效

Posted: Sun Mar 03, 2024 1:30 pm
by zhaoanguo222
如题,我在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);