Skip to content
thnikkPublic

About

Multi-Platform Gamepad Firmware for my controllers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Logo Logo


Fork of GP2040-CE


This is a fork of the original GP2040-CE as of v0.7.10. Most upstream changes are for broader compatibility, so I wanted my own fork for changes that are more specific to my controllers.

Fork Features

Rebuilt Web Config

Web Config

The web config has been reworked with a focus on configuration of existing boards over broader compatiblity with custom boards.

SVG Remapper

Instead of using pin remapping, a board SVG can be used to define pins for their positions on the board and that will be displayed on the pin remapping page of the web config instead of the list of pins. This is a lot more intuitive for remapping, since it mirrors what you see on the physical controller.

Mapping widgets

There are controller and keyboard widgets for easily selecting mapping for keys.

Widgets

Board LED addon

The Waveshare RP2040-Zero includes an on-board LED and this addon sets the color based on the input mode.

Per-profile Keyboard Mapping

Unique keyboard mapping for each profile.

Multi-key Keyboard Mapping

Map each button to a key and multiple modifiers.

Pin-based mapping

All controller, keyboard, and LED mapping are tied directly to pins instead of actions.

Integrated Mini Menu

The original implementation of the Mini Menu in GP2040-CE left a lot to be desired. You needed dedicated keys to toggle and navigate. Now there are globally set pins for navigating and a hotkey that can either use actions or pins for toggling the menu.

Installation

  1. Download the .uf2 firmware file for your board from the latest release
  2. Unplug your device
  3. Enter BOOTSEL mode — hold the BOOTSEL button while plugging in (or hold S1 + S2 + Up)
  4. A removable drive named RPI-RP2 will appear — drag the .uf2 file onto it
  5. The device will disconnect automatically once flashing is complete

If the device was previously used for other firmware, flash nuke it first to clear memory.

From original README

Description

GP2040-CE (Community Edition) is a gamepad firmware for the Raspberry Pi Pico and other boards based on the RP2040 microcontrollers that combines multi-platform compatibility, low latency and a rich feature set to provide endless customization possibilities without sacrificing performance.

GP2040-CE is compatible with PC, PS3, PS4, PS5, Nintendo Switch, Xbox One, Steam Deck, MiSTer and Android.

Features

  • Select from 13 input modes including X-Input, Nintendo Switch, Playstation 4/5, Xbox One, D-Input, and Keyboard
  • Input latency average of 0.76ms in Xinput and 0.90ms for Playstation 5.
  • Multiple SOCD cleaning modes - Up Priority (a.k.a. Stickless), Neutral, and Second Input Priority.
  • Left and Right stick emulation via D-pad inputs as well as dedicated toggle switches.
  • Dual direction via D-pad + LS/RS.
  • Reversed input via a button.
  • Turbo and Turbo LED with selectable speed
  • Per-button RGB LED support.
  • PWM Player indicator LED support (XInput only).
  • Multiple LED profiles support.
  • Support for 128x64 monochrome I2C displays - SSD1306, SH1106, and SH1107 compatible.
  • Custom startup splash screen and easy image upload via web configuration.
  • Support for passive buzzer speaker (3v or 5v).
  • Built-in, embedded web configuration - No download required!

Visit the GP2040-CE Usage page for more details.

Performance

Input latency is tested using the methodology outlined at WydD's inputlag.science website, using the default 1000 Hz (1 ms) polling rate in the firmware. You can read more about the setup we use to conduct latency testing HERE if you are interested in testing for yourself or would just like to know more about the devices used to do the testing.

Version Mode Poll Rate Min Max Avg Stdev % on time %1f skip %2f skip
v0.7.10 Xinput 1 ms 0.45 ms 1.28 ms 0.76 ms 0.24 ms 98.48% 1.52% 0%
v0.7.10 Switch 1 ms 0.41 ms 1.22 ms 0.73 ms 0.24 ms 98.52% 1.48% 0%
v0.7.10 HID USB 1 ms 0.42 ms 1.24 ms 0.73 ms 0.24 ms 98.53% 1.47% 0%
v0.7.10 PS3 1 ms 0.52 ms 1.33 ms 0.82 ms 0.24 ms 98.38% 1.62% 0%
v0.7.10 PS4 1 ms 0.55 ms 2.38 ms 0.91 ms 0.31 ms 98.19% 1.81% 0%
v0.7.10 PS5 1 ms 0.55 ms 2.38 ms 0.90 ms 0.31 ms 98.20% 1.80% 0%

Full results can be found in the GP2040-CE v0.7.10 Firmware Latency Test Results .xlsx Sheet.

Results from v0.7.9 can be found HERE. Previous results can be found in the latency_testing folder.

Acknowledgements

About

Multi-Platform Gamepad Firmware for my controllers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages