Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such File or directory <HID.h> #5

Open
ajelad opened this issue Dec 7, 2023 · 3 comments
Open

No such File or directory <HID.h> #5

ajelad opened this issue Dec 7, 2023 · 3 comments

Comments

@ajelad
Copy link

ajelad commented Dec 7, 2023

I have an arduino project and I need to use the <TinyUSB_Mouse_and_Keyboard.h>. I have downloaded it from here and included the zip library into the project.
Trying to run this and it is returning:
fatal error: HID.h: No such file or directory
45 | #include <HID.h>
| ^~~~~~~
compilation terminated.

@g8toparadise
Copy link

Same here, any fix ?

@cyborg5
Copy link
Owner

cyborg5 commented Jan 13, 2024

If it's looking for HID.h that means you are not using the TinyUSB stack to compile the program. You didn't say what kind of processor you are attempting to compile. Apparently it's one that does not support the standard Arduino HID.h. This library is designed to switch between the tiny USB in the standard Arduino versions of mouse and keyboard but if your platform does not support the standard Arduino version it will not compile.

@pigay
Copy link

pigay commented Feb 15, 2024

I'm using platformio with a rp2040 and managed to go a bit further by defining the USE_TINYUSB in order to skip the HID.h error.

I now stumble on another error, but I think it's a problem between platformio and the tinyusb library, not this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants