GarrukApex
Posts: 51
Joined: Tue May 24, 2016 3:42 am

Using GPIO as Keyboard

Tue Aug 02, 2016 4:28 pm

Hello all,
I have been thinking of a project where I would use a pi zero configured with the av outs on the board in a mobile media center. However, I do not want to have to carry a usb keyboard with me / buy a small one. Is there any library that I could use to render the gpio as a keyboard input? I would prefer to have this directly on boot, as I want to use a bootloader to be able to switch between retropie and OSMC. Do you guys know of anything out there that would fulfill these requirements?
Thanks.

User avatar
HermannSW
Posts: 1318
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Using GPIO as Keyboard

Tue Aug 02, 2016 6:09 pm

https://github.com/mmoller2k/pikeyd

The Readme.md is a bit sparse, but it sounds like it does what you want:
pikeyd

Universal Raspberry Pi GPIO keyboard daemon
Hermann.
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

GarrukApex
Posts: 51
Joined: Tue May 24, 2016 3:42 am

Re: Using GPIO as Keyboard

Tue Aug 02, 2016 6:34 pm

Thanks, I'll give it a try in a little while. Where do I put the code once I've downloaded it?

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Using GPIO as Keyboard

Wed Aug 03, 2016 6:35 am

Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

GarrukApex
Posts: 51
Joined: Tue May 24, 2016 3:42 am

Re: Using GPIO as Keyboard

Wed Aug 03, 2016 3:45 pm

That looks good too... I'll give them both a try. Thanks for the help guys!

blaablaaguy
Posts: 623
Joined: Sun Sep 27, 2015 3:26 pm

Re: Using GPIO as Keyboard

Wed Aug 03, 2016 6:30 pm

This signature intentionally left blank.

Return to “General discussion”