Crates.io | usbd-human-interface-device |
lib.rs | usbd-human-interface-device |
version | 0.5.0 |
source | src |
created_at | 2022-04-01 16:21:16.986828 |
updated_at | 2024-04-13 13:29:03.009398 |
description | Batteries included embedded USB HID library for usb-device. Includes concrete Keyboard (boot and NKRO), Mouse, Joystick and Consumer Control implementations as well as support for building your own HID classes. |
homepage | https://github.com/dlkj/usbd-human-interface-device |
repository | https://github.com/dlkj/usbd-human-interface-device |
max_upload_size | |
id | 560399 |
size | 196,282 |
Batteries included embedded USB HID library for usb-device
.
Includes Keyboard (boot and NKRO), Mouse, Joystick and Consumer Control implementations as well as
support for building your own HID classes.
Tested on the RP2040, but should work on any platform supported by
usb-device
.
Devices created with this library should work with any USB host. Tested on Windows, Linux, MacOS and Android.
Note: Managed interfaces that support HID idle, such as
NKROBootKeyboardInterface
and BootKeyboardInterface
,
require the UsbHidClass::tick()
method calling every 1ms.
See examples for demonstrations of how to use this library on the RP2040 (Raspberry Pi Pico)
https://github.com/dlkj/usbd-human-interface-device/issues
Distributed under the MIT License, see LICENSE
.
Contributions are welcome via pull requests
This library was inspired by existing rust USB libraries and the following sources of USB information: