Use your Raspberry Pi Pico as a HID device to give mouse and keyboard input using Adafruit’s CircuitPython

Hriday Barot has written up a couple of example scripts for the Raspberry Pi Pico that will mimic mouse and keyboard input to the USB port it is plugged into. The scripts, written in CircuitPython, are very simple, but you can see how they work easily enough.

This seems ideal for something like a Stream Deck, which can control something like OBS when doing video broadcasting. Alternatively, you can do what Novaspirit Tech did and plug the Pico into your mobile phone to automate an Android game. Very clever stuff. You can read how he did it by visiting his blog.

3 comments for “Use your Raspberry Pi Pico as a HID device to give mouse and keyboard input using Adafruit’s CircuitPython

  1. My next project planned for the Pico is a Frets on Fire (guitar hero clone) controller using exactly this library (and mechanical switches). Just waiting for the keycaps to arrive!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.