Project

hidg0

0.0
No commit activity in last 3 years
No release in over 3 years
Used with a Raspberry PI Zero plugged into a computer to act as USB Keyboard (HID).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1, >= 0.1.2
 Project Readme

Introducing the hidg0 gem

require 'hidg0'

g = HidG0.new()
sleep 3
g.keypress :a

In order to run the above script follow the Using a Raspberry Pi Zero W as a USB Keyboard instructions, install Ruby on the Pi and then gem install hidg0.

Then on the host machine open a blank text editor window, and then SSH into the Pi and run the above script. Observe the letter a appears in the text editor window.

Resources

raspberrypi pizero zero pi hid keyboard usb virtual keypress sendkeys