OpenStickCommunity / OpenStickCommunity/GP2040-CE
Analog value triggers R2 L2
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 667
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 7
Description
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior with GP2040-CE_0.7.10_Pico.uf2 on a Raspberry Pi Pico, using ADC pins 26, 27, and 28 and checking whether R2/L2 report only 0/1. Compare the trigger behavior with the analog stick add-on; done means R2 and L2 expose usable analog values while retaining compatible button input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100