Skip to content

Move ADC channel selection out of variant files #51

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

Merged
merged 2 commits into from
Aug 16, 2019
Merged

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Aug 16, 2019

In normal course, general pins are converted to pads. With this commit any pin number over 99 is treated as a special internal ADC channel. These 'pins' are not converted to pads via ap3_gpio_pin2pad() (calls the board variant).

ADC works correctly. The analogRead was updated as well. Internal temp is now more accurately calculated. All variants updated.

This should fix issue #45.

…e. Variants modified.

In normal course, general pins are converted to pads. With this commit any pin number over 99 is treated as a special internal ADC channel. These 'pins' are not converted to pads via ap3_gpio_pin2pad() (calls the board variant).

ADC works correctly. The analogRead was updated as well. Internal temp is now more accurately calculated. All variants updated.
@oclyke oclyke merged commit 410fe55 into master Aug 16, 2019
@oclyke oclyke deleted the adcChannelMove branch August 16, 2019 16:34
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

Successfully merging this pull request may close these issues.

2 participants