USB HDI Host example

EG1966
Posts: 3
Joined: Thu Oct 31, 2024 7:58 am

USB HDI Host example

Postby EG1966 » Tue Nov 05, 2024 10:03 am

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

aliarifat794
Posts: 198
Joined: Sun Jun 23, 2024 6:18 pm

Re: USB HDI Host example

Postby aliarifat794 » Wed Nov 13, 2024 9:26 am

The error is due to the removal of the mentioned headers in the latest versions of the ESP-IDF.

EG1966
Posts: 3
Joined: Thu Oct 31, 2024 7:58 am

Re: USB HDI Host example

Postby EG1966 » Fri Nov 15, 2024 1:18 pm

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

EG1966
Posts: 3
Joined: Thu Oct 31, 2024 7:58 am

Re: USB HDI Host example

Postby EG1966 » Mon Nov 18, 2024 1:48 pm

If the files were removed why do the examples still use these files?

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: USB HDI Host example

Postby ESP_Sprite » Tue Nov 19, 2024 1:23 am

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.

Who is online

Users browsing this forum: No registered users and 175 guests