arduino / arduino/ArduinoCore-sam

adc 12 bit

Open
#110 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
91
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Why is it converted to 10 bit if the next line assumes it is 12 bit wide.

https://github.com/arduino/ArduinoCore-sam/blob/eed66e7977b4037f49bbcd832437d4bcf72c0f3f/cores/arduino/wiring_analog.c#L115

Contributor guide

No contributing guide indexed for this repository

Research direction

Open cores/arduino/wiring_analog.c at the linked line and trace how the ADC value is converted before the following 12-bit operation. Check the surrounding analog-read implementation and relevant repository tests or examples, if present. Done means resolving the width mismatch with behavior that is consistent throughout the ADC path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.