Skip to content

[request] set_analogGain() function is required #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
msfujino opened this issue Feb 24, 2025 · 3 comments
Open

[request] set_analogGain() function is required #117

msfujino opened this issue Feb 24, 2025 · 3 comments
Labels
featurerequest Feature request

Comments

@msfujino
Copy link

Summary

For AD conversion, a function like set_analogGain() is needed to set the gain as well as the set_reference() function to set the reference voltage.

@msfujino msfujino added the featurerequest Feature request label Feb 24, 2025
@leonardocavagnis
Copy link
Contributor

Hi @msfujino,
Thanks for your suggestion!
If you need to modify the ADC analog gain, you can adjust this variable:

all_configs.configs[0].analogGain = iadcCfgAnalogGain1x;

(If you're using the Arduino Nano Matter, you can find the available values here).

If you'd like to contribute, feel free to create a PR implementing set_analogGain(), and I'll be happy to review it! 😄

@msfujino
Copy link
Author

msfujino commented Feb 27, 2025

Thank you for your response.
I had already tried the patch to deal with the problem and knew it would work, but for compatibility, I thought there should be a set_analogGain().
Unfortunately, I don't have the skills to create a new function. I would appreciate it if you could consider this in the next release.

@msfujino
Copy link
Author

msfujino commented Mar 1, 2025

I have created a function set_gain(), but I can't figure out how to post it.
Is there any documentation available?

@msfujino msfujino changed the title [request] <title>set_analogGain() function is required [request] set_analogGain() function is required Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
featurerequest Feature request
Projects
None yet
Development

No branches or pull requests

2 participants