🍓 USBHID
Rust Library for the USB HID protocol. Based on zero-hid.
🐛 Compatibility
Compatible | Board | Port(s) |
---|---|---|
⚠️ | ESP32 | |
⚠️ | Raspberry Pi Pico | |
✅ | Raspberry Pi Zero 2w | 🎩 |
Legend: ✅ Compatible, ❌ Incompatible, ⚠️ Untested. Ports: 🎩 USB Hat, 📡 USB Port.
⚡ Features
- Keyboard.
- Keydown.
- Keyup.
- Type string.
- Mod keys.
- Mouse.
- Move to.
- Move relative.
- Left click.
- Right click.
- Middle click.
- Scroll Wheel.
- Mass storage.
- Write file.
- Read file.
- Delete file.
- Ethernet.
- Send packet.
- Receive packet.
- Gamepad.
- Button press.
- Button release.
- Joystick move.
- Printer.
- Print text.
- Print image.
⚙ Setup
Before using this library, you need to install a virtual USB HID device on your board.
# Clone the repository
# Go to the installer directory
# Install the virtual device
&&
📚 Usage
⌨ Keyboard:
use ;
🖱 Mouse:
use ;
🤝 Contributing
Contributions, issues and feature requests are welcome! Feel free to check issues page.
❤️ Show your support
Give a ⭐️ if this project helped you! Or buy me a coffeelatte 🙌 on Ko-fi