Skip to content

Conversation

@JoanVC100
Copy link

While testing the analog inputs on the Uno Q, I discovered that A4 and A5 were swapped in the device tree overlay. The corresponding channels can be found in the STM datasheet on page 111.

This took me a while to figure out because they were working perfectly when used as digital inputs. The error only appeared when I used them as ADC inputs.

I also added comments clarifying that the ADC lines refer to the A4 and A5 pins and their corresponding ports.

Correct the io-channels ordering so that A4 maps to PC1 (ADC1 Channel 2) and
A5 maps to PC0 (ADC1 Channel 1).

The corresponding channels can be found in the STM datasheet on page 111. Also,
add some comments to clarify which pins are being used.
@CLAassistant
Copy link

CLAassistant commented Nov 11, 2025

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added the bug Something isn't working label Nov 12, 2025
@pennam pennam merged commit 5884037 into arduino:main Nov 12, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants