Skip to content
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

Impliment analogReadResolution() #427

Open
JacobChrist opened this issue Jun 9, 2018 · 2 comments
Open

Impliment analogReadResolution() #427

JacobChrist opened this issue Jun 9, 2018 · 2 comments

Comments

@JacobChrist
Copy link
Member

Arduino (Zero, Due & MKR Family) has a function that would be useful in chipKIT-core.

analogReadResolution()

Described here:

https://www.arduino.cc/reference/en/language/functions/zero-due-mkr-family/analogreadresolution/

@majenkotech
Copy link
Member

Does it actually change the ADC's reading resolution, or just scale it with bit shifting in post processing?

@JacobChrist
Copy link
Member Author

JacobChrist commented Jun 9, 2018

Looks like it just pads with zero's if you set to resolution higher than the chip can handle and probably truncates if the resolution is lowered. Added issue for compatibility completeness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants