adafruit / adafruit/Adafruit_TinyUSB_Arduino
Set ADC range/accuracy of joysticks/axis.
- Dominant language
- C
- Stars
- 654
- Forks
- 183
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
The issue is that the library is coded for -127/128 int value, 8bit. While many SoC's have 12bit ADCs or better. (I'm using an ESPS2 at the moment)
**Describe the solution you'd like**
An easy and clear way to change the settings of these values for the gamepad portion of the library.
**Describe alternatives you've considered**
Editing the library itself to use int_12t instead of the currently used int_8t.
**Additional context**
Joysticks and triggers for gamepads usually don't need more than 256 values for most casual games, but depending on the game (like simracing, or a shooter) having more accuracy can be the difference between having an enjoyable time, or not being able to pinpoint *why* the controller feels bad to play on but knowing you're not at fault.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the gamepad axis and trigger value definitions in the library and compare their current 8-bit range with the requested configurable ADC range. Done means the gamepad portion provides a clear way to select higher-resolution axis values without requiring users to edit the library itself.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, c
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100