Page 1 of 1

USB HDI Host example

Posted: Tue Nov 05, 2024 10:03 am
by EG1966
Hi

I am trying to use the example on a ESP32-S3-USB-OTG board:

examples/peripherals/usb/host/hid/main/hid_host_example.c

But when I compile these 3 files are not found:

#include "usb/hid_host.h"
#include "usb/hid_usage_keyboard.h"
#include "usb/hid_usage_mouse.h"

It seems that they were deleted in this commit:
https://github.com/espressif/esp-idf/co ... df30675a99

How can this be solved?

thanks

Re: USB HDI Host example

Posted: Wed Nov 13, 2024 9:26 am
by aliarifat794
The error is due to the removal of the mentioned headers in the latest versions of the ESP-IDF.

Re: USB HDI Host example

Posted: Fri Nov 15, 2024 1:18 pm
by EG1966
Hi

Thanks for the answer.
But the examples still use these files. See here HOST HID example:
https://github.com/espressif/esp-idf/tr ... t/hid/main

So how can I use the examples?
I tried to get the files from a previous repo but then I get a lot of compilation errors.

thanks

Re: USB HDI Host example

Posted: Mon Nov 18, 2024 1:48 pm
by EG1966
If the files were removed why do the examples still use these files?

Re: USB HDI Host example

Posted: Tue Nov 19, 2024 1:23 am
by ESP_Sprite
I think the USB HID library has been moved to the component registry; those examples will automatically download and add that component if you build them.