GP2040-CE icon indicating copy to clipboard operation
GP2040-CE copied to clipboard

Analog value triggers R2 L2

Open M0RRiS0on opened this issue 10 months ago • 1 comments

Problem

Hello! I’m making ps4 compatible controller Using base Raspberry Pi Pico Firmware: GP2040-CE_0.7.10_Pico.uf2 It requires only 1 analog sitck axis and 2 analog triggers, so 3 available ADC pins should be enough, but binding R2/L2 to pins 26/27/28 works only like digital buttons(0/1). ADC pins are fine- tested with Analog stick add-on.

Solution

Is it possible to read analog values for R2/L2? Maybe I should just use different firmware version, in which such feature enabled? Which one will be suitable?

Thank you in advance!

M0RRiS0on avatar Jan 27 '25 14:01 M0RRiS0on

Currently, our Analog addon only supports dual analog sticks via pins 26-29 on the RP2040. With the Pico, since 29 is used by the board itself, you can only use 26-28, as you mentioned, but other boards exist where all four pins are available. However, in order to get full analog compatibility, you will need to use one of the addons that interfaces with a dedicated analog chip. The ADS1256 will support dual analogs plus L2/R2 analog values.

mikepparks avatar Jan 27 '25 16:01 mikepparks