织梦CMS - 轻松建站从此开始!

abg欧博官网|登陆|游戏|

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

时间:2025-11-28 06:59来源: 作者:admin 点击: 9 次
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 Keyb

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:

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 ); it's not an easy task but it's surely very rewarding

:slight_smile:

!

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

GitHub - mo10/Curie-bluetooth-HID-library: A library turn Curie Core...

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 ...

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-12-14 23:12 最后登录:2025-12-14 23:12
栏目列表
推荐内容