Library for emulate mouse and keyboard on raspberry pi zero
Project description
HID library for emulate mouse and keyboard on PI zero.
Setup - Tested on Raspbian lite 5.10
Single command installation
curl -LSs "https://git.io/JXpdg" | sudo bash
Manual installation
install packages
sudo apt-get update && sudo apt-get install git python3-pip -y
clone the repo and install usb gadget module
git clone https://github.com/thewh1teagle/zero-hid
cd zero_hid/usb_gadget
chmod +x install.sh && sudo ./install.sh
install zero_hid to python
cd zero_hid/
pip3 install .
Usage
Control mouse
from zero_hid import Mouse
m = Mouse()
for i in range(5):
m.move_relative(10, 10)
Control keyboard
from zero_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
zero_hid-0.1.tar.gz
(20.4 kB
view hashes)
Built Distribution
zero_hid-0.1-py3-none-any.whl
(20.3 kB
view hashes)