Library for emulate mouse and keyboard on raspberry pi zero
Project description
HID python library for emulating mouse and keyboard on PI zero.
Setup - Tested on Raspbian lite 5.10
- Install apt dependencies
sudo apt-get update
sudo apt-get install -y git python3-pip
- install usb gadget module https://github.com/Pant3x/rpizero-hid/tree/main/usb_gadget
- Install
rpizero-hid
withpip
pip3 install rpizero-hid
Usage
Note: You should connect the data usb port (left one) to the raspberry, and NOT the power port
- Control mouse
from rpizero_hid import Mouse
m = Mouse()
for i in range(5):
m.move_relative(10, 10)
- Control keyboard
from rpizero_hid import Keyboard
k = Keyboard()
k.type('Hello world!')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rpizero-hid-0.0.1.tar.gz
(16.9 kB
view details)
File details
Details for the file rpizero-hid-0.0.1.tar.gz
.
File metadata
- Download URL: rpizero-hid-0.0.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79117807deba427b0bf8b2a19980772451e5b90532b1ab3ee4fb07354d2f6168 |
|
MD5 | b20944e4dd677f6b7fcf85886aadc221 |
|
BLAKE2b-256 | a02193f60f0ffd7eef6b9f897db15e4e20efc314c2724f4015263d8df775a274 |