# fatal error: HID.h: No such file or directory

**URL:** <https://forum.arduino.cc/t/fatal-error-hid-h-no-such-file-or-directory/638628>\
**Category:** 101\
**Created:** [February 24, 2020, 7:15pm UTC](https://forum.arduino.cc/t/fatal-error-hid-h-no-such-file-or-directory/638628 "2020-02-24T19:15:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAHW](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JAHW](https://forum.arduino.cc/u/JAHW)\
**Post date:** [February 24, 2020, 7:15pm UTC](https://forum.arduino.cc/t/fatal-error-hid-h-no-such-file-or-directory/638628/1 "2020-02-24T19:15:29Z")

</div>

I'm sorry for such a basic question, but I'm trying to use the KeyboardSerial example included with the Arduino IDE.

I added the Keyboard library, but it depends on HID.

HID is described as a core library, but was not included in my recent Arduino IDE download, and I can't find the HID library anywhere including github. Probably looking in the wrong place.

I would appreciate help.

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [February 24, 2020, 10:25pm UTC](https://forum.arduino.cc/t/fatal-error-hid-h-no-such-file-or-directory/638628/2 "2020-02-24T22:25:07Z")

</div>

The HID library is architecture specific, so it is typically bundled with the hardware package of the boards of the architecture it was written for. The Arduino 101 developers never wrote an HID library, so that's why you can't use the Keyboard and Mouse libraries with your Arduino 101. Here's a more detailed explanation from one of Arduino's developers:  
[https://forum.arduino.cc/index.php?topic=425505.msg2932286#msg2932286](https://forum.arduino.cc/index.php?topic=425505.msg2932286#msg2932286)

> to become a Keyboard/Mouse an Arduino needs a programmable USB core (and native USB capabilities).  
> Leonardo, Micro, Zero allow this kind of operations, while the 101 uses the x86 RTOS as an USB-to-serial converter so it can't be directly modified.  
> If you feel brave, you could investigate how to enable x86 HID capabilities (the repository with the source code is [here](https://github.com/01org/CODK-A)); it's not an easy task but it's surely very rewarding 🙂 !

It's possible a community member has written a 3rd party library to provide this functionality, but I didn't find any after a quick search. What I did find is a 3rd party library that does keyboard or mouse emulation over BLE:

> **[GitHub - mo10/Curie-bluetooth-HID-library: A library turn Curie Core...](https://github.com/mo10/Curie-bluetooth-HID-library)**
>
> A library turn Curie Core boards(Arduino/Genuino 101) into a Bluetooth Keyboard. - GitHub - mo10/Curie-bluetooth-HID-library: A library turn Curie Core boards(Arduino/Genuino 101) into a Bluetooth ...

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 6:05pm UTC](https://forum.arduino.cc/t/fatal-error-hid-h-no-such-file-or-directory/638628/3 "2021-05-06T18:05:29Z")

</div>

Closed on May 6, 2021, 6:05pm UTC


