Sven Anderson has developed firmware for the Raspberry Pi Pico that transforms it into a USB adapter for two D-Sub 9 joysticks aka the DualJoy. These joysticks were commonly used with systems such as the Atari 2600, Commodore 64, and Amiga home computers. When connected via this adapter, they appear as two digital hats/d-pads with a single button each.
The firmware is based on various examples from the Pico SDK and TinyUSB and maintains their MIT license.
Users who employ the same GPIO configuration as in the hardware example below can utilize the precompiled binary available on the release page:
GPIO | D-SUB Pin | Function |
---|---|---|
10 | 1 (J1) | J1 UP |
11 | 2 (J1) | J1 DOWN |
12 | 3 (J1) | J1 LEFT |
13 | 4 (J1) | J1 RIGHT |
9 | 6 (J1) | J1 BTN |
18 | 1 (J2) | J2 UP |
19 | 2 (J2) | J2 DOWN |
20 | 3 (J2) | J2 LEFT |
21 | 4 (J2) | J2 RIGHT |
17 | 6 (J2) | J2 BTN |
Additionally, pin 8 of both D-Sub connectors must be connected to GND on the Raspberry Pi Pico.