Pi Pico-based solution for running 8BitDo keyboard extensions directly to USB
- An 8BitDo Keyboard Extension. One (or multiple) of these:
- A Raspberry Pi Pico board
- https://www.raspberrypi.com/products/raspberry-pi-pico/
- You can use the most basic version. Wifi not required.
- A pair of TRS (audio jack) breakout boards
- like this one: https://core-electronics.com.au/trrs-3-5mm-jack-breakout.html
- Can be any brand
- I'm using two, since my chosen 8BD Extension needs two jacks
- Hook up wire
- Some light soldering
A very quick and dirty wiring of the audio jacks to the Pi Pico.
A close-up of the ABXY split-plug, connected with two audio jacks.
-
Install Circuit Python on to your Pico
-
Install the Adafruit Circuit Python libraries
- Download from https://circuitpython.org/libraries
- Open your CIRCUITPY drive
- Copy the following libraries (listed below) into your
CIRCUITPY/lib/
folder- adafruit_hid (the whole folder)
- adafruit_debouncer.mpy
- adafruit_ticks.mpy
-
Copy code.py (from this repository) into the root
CIRCUITPY/
folder -
(maybe) You might need to unplug and reconnect the Pico to your computer for changes to be seen
-
Open VS Code (or Notepad) and test your buttons
- Open the code.py file in VS Code or Notepad, and find the following lines in the file
- Amend the codes to customise your keys
17: # Set your keys here
18: btn_A_key = Keycode.Q
19: btn_B_key = Keycode.W
20: btn_X_key = Keycode.E
21: btn_Y_key = Keycode.R